开源:老铁!整个社会语录?

折腾 467 字 3524 阅

写在前面

现在随着短视频的时代快速发展,通过某手某音,我们经常都可以看到一大波的精神小伙,他们说的话那真的是太....太优美了 ,于是我就找到了一言的随机API

没错!我想写一个随机的社会语录!我自己也来搞一个!

那语录真的是...哎呀妈呀,其实前端不难写,毕竟有老前辈随机一言给我们铺路,难的是收集这些社会语录的文字,费了好大一会功夫了。累!

没办法!谁让咱这么喜欢折腾呢!

另外也写了个舔狗日记,用的一样的模板。

项目链接

社会语录

[btngreen href="https://ouoo.fun/shehui" target="blank"]社会语录!安排!-从南到北[/btngreen]

舔狗日记

[btngreen href="https://ouoo.fun/dog/" target="blank"]舔狗日记-从南到北[/btngreen]

项目截图

mmexport1617330096972.png

mmexport1617330099358.png

API

[greenbar]返回JS APIhttps://ouoo.fun/yulu/shehui/api.php?format=js&charset=utf-8
返回JSON APIhttps://ouoo.fun/yulu/shehui/api.php?format=json&charset=utf-8
返回纯文字APIhttps://ouoo.fun/yulu/shehui/api1.php
提交方式:GET/POST[/greenbar]

调用

把这个放在<head></head>之间

<script type="text/javascript" src="https://ouoo.fun/yulu/shehui/api.php?format=js&charset=utf-8"></script>

然后把下面这个代码放在首页或者页脚你要显示的地方即可

<div id="hitokoto"><script>hitokoto()</script></div>

开源

秉承开源精神,决定把此项目进行开源,只开源前端啦,包括APP源码,仅供参考学习,后端就用我的吧(稳定得很),收集实属不易,如果你也爱折腾,你也可以自己收集。

HTML源码

[download href="https://image.ouoo.fun/echo/%E7%A4%BE%E4%BC%9A%E8%AF%AD%E5%BD%95.rar" target="blank"]点击进入下载[/download]

APP源码(iApp)

[download href="https://image.ouoo.fun/echo/%E7%A4%BE%E4%BC%9A%E8%AF%AD%E5%BD%95-%E4%BB%8E%E5%8D%97%E5%88%B0%E5%8C%97.iApp" target="blank"]点击进入下载[/download]

后端API

<?php
$path=dirname(__FILE__);
$file=file($path."/hitokoto.txt");
# 随机读取一行
$arr=mt_rand( 0, count( $file ) - 1 );
$content = trim($file[$arr]);
# 编码判断,用于输出相应的响应头部编码
if (isset($_GET['charset']) && !emptyempty($_GET['charset'])) {
    $charset = $_GET['charset'];
    if (strcasecmp($charset,"gbk") == 0 ) {
        $content= mb_convert_encoding($content,'gbk', 'utf-8');
    }
} else {
    $charset='utf-8';
}
header("Content-Type: text/html; charset=$charset");
# 格式化判断,输出js或纯文本
if ($_GET['format']==='js') {
    echo "function hitokoto(){document.write('".$content."');}";
} else {
    echo $content;
}

?>

自己可以自定义创建文件,自己做API

关于

“社会语录”该项目出自于个人兴趣爱好,并无任何商业化信息,请开发者们不要对本站进行攻击,本站托管在西部数码小水管,无任何CDN,还请大侠们手下留情!

有啥不明白的可以来问我

- THE END -
打赏 分享
评论 ( 91 )
OωO
  1. Cvtdlp

    best tadalafil tablets - Buy discount cialis online real cialis for sale

    10小时前 回复
  2. Svixwv

    cost of cialis 5mg in canada - ereccialtdfil how can i get cheap cialis

    一天前 回复
  3. Uxdsbf

    where can i get generic viagra online - sildenafil medication sildenafil tablets 100mg buy

  4. Xgfrlm

    generic viagra 100mg - viagra 50 mg cheap brand viagra

  5. casino online

    hello my lovely stopforumspam member

    Welcome to Grosvenor Casinos, where you can play a wide range of casino games, from slots to poker, blackjack, and roulette! There’s something for everyone here – become a member of the casino to have the best of online casino gaming. Our Sportbook offers a range of sports betting odds and is available for pre event or in play bets 24/7 and 365 days of the year. Whether you’re here for football tournaments or the latest betting odds for horse racing, Tennis, Golf, Cricket and even Rugby Union, you are covered.

  6. Unkjpj

    where to buy stromectol - oral stromectol cost ivermectin tablets order

  7. canadian drugstore

    homeopathic allergy diagnosing stomach problems
    online pharmacies
    online pharmacies https://canadianexpresspharm.com/# online pharmacies

  8. payday loans online

    hello my lovely stopforumspam member

    What are the Types of Loans in Ohio depending on the purpose
    Specific purpose payday loans in Ohio. Funds received in debt may be spent only for a specific purpose specified in the loan agreement.
    Non-purpose loan. The debtor may spend the money received at his discretion.
    Most popular specific purpose payday loans in Ohio are:

    House loan. The most common, of course, is a mortgage when the purchased property acts as collateral for a loan. Sometimes a youth loan is issued, with lighter conditions for debtors. Still quite common is a housing loan that does not imply purchased housing in the form of collateral.
    Car loan – payday loans in Ohio to a car or similar vehicle. The key is often the purchased goods, making the terms of the loan better. Also, loan conditions are improved: car insurance, life and health insurance of the borrower, and receiving a salary to the account of the creditor bank.
    Land loan. To purchase a plot for construction or agricultural activities.
    Consumer. For purchases in modern supermarkets, equipment stores, you can take a personal loan right at the point of sale. Often, specialists located there can contact the bank and get a regular or fast payday loans. Borrowed funds automatically pay for the goods, and the consultant explains when and how to re-pay the debt.
    Educational loan. It is issued to students, as well as to applicants who have passed the competition, to pay for tuition at universities, colleges, etc.
    Broker loan. For the circulation of securities, payday loans in Ohio are issued to an exchange broker, se-curities are purchased securities.
    Others. Objectives not related to those listed, but agreed and approved by the creditor.

  9. Orudcx

    stromectol 3 mg tablet - stromectol for humans for sale stromectol human

  10. Cidanh

    generic cialis for daily use - buy cialis uk next day delivery cialis mail order

    10月11日 回复
  11. Neurontine

    Cephalexin And Mao Inhibitors

    10月10日 回复
  12. Lwjhbe

    can you buy prednisone - prednisone brand name uk how to get prednisone

    10月9日 回复
  13. Bdtlqz

    buy 5mg tadalafil - cialis 10 m cialis how to

    10月8日 回复
  14. Veltfieni
    Veltfieni

    http://buyneurontine.com/ - gabapentin weight gain

    10月8日 回复
  15. Kuhskm

    best generic sildenafil - viagra sildenafil 200mg viagra best prices

    10月7日 回复
  16. online drugstore

    allergic conditions gastrointestinal distress meaning
    online drugstore
    canadian pharmacies https://canadianexpresspharm.com/# online pharmacies

    10月7日 回复
  17. Zwavit

    cost of ivermectin pill - stromectol brand name order stromectol

    10月6日 回复
  18. offisee
    offisee

    https://prednisonebuyon.com/ - prednisone canadian pharmnacy

    10月5日 回复
  19. canadian pharmacies

    bronchial asthma etiology lupus arthritis
    online pharmacies
    online pharmacies https://canadianexpresspharm.com/# canadian pharmacies

    10月5日 回复
  20. Mgholt

    xenical capsules price - orlistat 60 mg preisvergleich orlistat mice

    10月5日 回复
  21. Ibizzf

    buy vidalista 20 uk - cenforce 100 usa and uk kamagra 100 mg online

    10月3日 回复
  22. Fyzdne

    hydroxychloroquine arthritis - hydroxychloroquine plaquenil deltasone pill

    10月2日 回复
  23. Intelut
    Intelut
    10月2日 回复
  24. Hjxryw

    buy vardenafil - viagra canadian pharmacy vipps approved ed medication

    10月1日 回复
  25. Izhdig

    research papers writing - essay helper buy essay online uk

    9月26日 回复
  26. Tfqmfh

    isotretinoin 40mg - accutane medication accutane cream

    9月25日 回复
  27. lasix classification

    Last Long In Bed To Last Longer

    9月24日 回复
  28. jimdofreewen

    We spent a lot of time at her home. Maybe so her mother could keep an eye on us. Mrs. Spencer made sure to be around, offering drinks, snacks, chit chat. I noticed that she was fairly young herself. Granted at my age, anyone over 25 was old, but she was probably mid-30s, divorced. If she was a indiction of how Carley would develop, maybe I should wait. Mrs. Spencer had fuller breasts and a nice butt. She appeared to be in great shape for her "advanced" age. I knew she was keeping an eye on me as much as I was on her and her younger daughter. Her eldest, Sharon was away at college at the time. With Mrs. Spencer around we mostly limited ourselves to holding hands and sneaking in a few light kisses. One day Mrs. Spencer caught us by surprise walking in as I'd slid my hand up from Carley's stomach to rub her right breast through her shirt. She didn't really need a bra yet, so I could feel her nipple, hard, through her shirt. Just this much contact had me hard also.

    https://sites.google.com/view/MUuC5xmrE1xBPF5I https://sites.google.com/view/VAiJDr2hTihfGX9U

    9月24日 回复
  29. Ujwlin

    buying tadalafil online safely - buy tadalafil 20mg price buy tadalafil online

    9月24日 回复
  30. Tilange
    Tilange
    9月23日 回复
  31. entaisy
    entaisy
    9月23日 回复
  32. Vhizzy

    sildenafil without a doctor prescription - sildenafil coupon buy generic sildenafil

    9月22日 回复
  33. over the counter hydroxychloroquine

    hair loss concealer intestinal diseases in adults
    hydroxychloroquine price walmart
    hydroxychloroquine online https://hydroxychloroquineplaquen.com/# plaquenil

    9月22日 回复
  34. acouple
    acouple
    9月22日 回复
  35. plaquenil eye toxicity

    Viagra Et Decalage Horaire

    9月22日 回复
  36. sholype
    sholype

    https://buyplaquenilcv.com/ - does hydroxychloroquine

    9月21日 回复
  37. Adbnux

    ivermectin 12 - stromectol 2mg online ivermectin 2ml

    9月21日 回复
  38. Priligy

    Propecia Online Review

    9月21日 回复
  39. Khtdjc

    stromectol tablets 3 mg - ivermectin 1mg ivermectin cream 1

    9月20日 回复
  40. coeriot
    coeriot
    9月19日 回复
  41. Easedia
    Easedia
    9月19日 回复
  42. Abnzei

    doxycycline 100mg generic - how much is doxycycline cost prednisolone prednisone

    9月19日 回复
  43. peenotoog
    peenotoog
    9月18日 回复
  44. Stfnup

    generic cytotec - cytotec 200g where to buy cytotec pills in south africa

    9月17日 回复
  45. zithromax pills

    cialis causes headaches

    9月17日 回复
  46. kibundend
    kibundend
    9月16日 回复
  47. Nbrsre

    ventolin cost uk - ventolin over the counter ventolin cost canada

    9月16日 回复
  48. Srxtwc

    buy lasix online cheap - buy clomid furosemide over the counter

    9月15日 回复
  49. Ubmmxs

    canadian pharmacy 5 mg prednisone no rx - canada prednisone 50 mg prednisone 2

    9月14日 回复
  50. Bdocze

    buy ivermectin - stromectol humans ivermectin without prescription

    9月12日 回复
  51. Ltyfvg

    buying cialis in canada - Cialis cheap price generic cialis singapore

    9月10日 回复
  52. Cascalm
    Cascalm

    https://buystromectolon.com/ - ivermectin for horses

    9月9日 回复
  53. Dfsumn

    viagra online drugstore - Best price for generic viagra 50 mg viagra

    9月9日 回复
  54. Evorogava
    Evorogava
    9月8日 回复
  55. Cialis

    Macrobid Furadantin Need With Free Shipping Next Day Delivery

    9月8日 回复
  56. Jxbard

    order research paper online - help with my essay order an essay online

    9月7日 回复
  57. anowirway
    anowirway

    http://buytadalafshop.com/ - comprare cialis online

    9月7日 回复
  58. Viagra

    Prezzo Cialis Viagra

    9月7日 回复
  59. Tdhutq

    medrol 48 mg - solu medrol lyrica 5

    9月6日 回复
  60. Stromectol

    Cialis Rezeptfrei Vergleich

    9月6日 回复
  61. Trjldp

    amoxicillin price at walgreens - amoxicillin without a doctor’s prescription amoxicillin usa

    9月5日 回复
  62. saunTee
    saunTee
    9月5日 回复
  63. Ozxrba

    roche accutane without prescription - accutane 5 mg online accutane 40

    9月3日 回复
  64. Pemuxp

    order prednisone 10mg - prednisone side effects cost of prednisone

    9月2日 回复
  65. Embably
    Embably
    9月1日 回复
  66. Fgjnfn

    vardenafil 60 pills - vardenafil effectiveness vardenafil online in canada

    8月31日 回复
  67. Propecia

    generic kamagra buy

    8月30日 回复
  68. Htwuwc

    best australian online pharmacy - tadalafil price in mexico tadalafil 20 mg for sale online

    8月29日 回复
  69. Nannfq

    cheap viagra uk - buy viagra sale online viagra tablets in india

    8月28日 回复
  70. enrormeno
    enrormeno
    8月28日 回复
  71. Zjovel

    buy neurontin online - neurontin 100 mg caps levothyroxine canada

    8月27日 回复
  72. Rruyel

    doxycycline brand - doxycycline brand name india doxycycline 100mg capsule sale

    8月25日 回复
  73. Jprbfm

    where to buy misoprostol online - cytotec 200 mg buy cytotec usa

    8月24日 回复
  74. Gxutpe

    ventolin australia price - ventolin cost canada ventolin price canada

    8月22日 回复
  75. Crdjbd

    ivermectin 18mg - ivermecti.com stromectol for head lice

    8月21日 回复
  76. 刘瑞霞
    刘瑞霞

    4月14日 回复
  77. 寒光

    牛皮 哈哈哈哈哈

    4月3日 回复
  78. BLUE
    BLUE

    太棒了太棒了

    4月2日 回复
  79. 风雨行者

    厉害厉害,手动给你点个赞!

    4月2日 回复
感谢打赏