{"id":213098,"date":"2020-12-03T17:37:16","date_gmt":"2020-12-03T09:37:16","guid":{"rendered":"http:\/\/4563.org\/?p=213098"},"modified":"2020-12-03T17:37:16","modified_gmt":"2020-12-03T09:37:16","slug":"%e5%be%ae%e8%bd%af%e5%ae%98%e6%96%b9%e6%9c%89%e6%b2%a1%e6%9c%89%e6%8f%90%e4%be%9bbing%e5%a3%81%e7%ba%b8%e7%9a%84api%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=213098","title":{"rendered":"\u5fae\u8f6f\u5b98\u65b9\u6709\u6ca1\u6709\u63d0\u4f9bbing\u58c1\u7eb8\u7684api\uff1f"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>programer<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u5fae\u8f6f\u5b98\u65b9\u6709\u6ca1\u6709\u63d0\u4f9bbing\u58c1\u7eb8\u7684api\uff1f<\/h3>\n<p>  \u6253\u7b97\u6bcf\u5929\u83b7\u53d6\u4e00\u6b21\uff0c\u7ed9\u81ea\u5df1\u7f51\u7ad9\u505a\u80cc\u666f\u56fe\uff0c\u7b2c\u4e09\u65b9\u7684api\u62c5\u5fc3\u4e0d\u7a33\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>teardrops<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\thttp:\/\/cn.bing.com\/HPImageArchive.aspx?format=js&amp;idx=0&amp;n=1<\/p>\n<p>  \u8fd9\u91cc\u6709\u51e0\u4e2aGET\u53c2\u6570\uff0c\u5b83\u4eec\u7684\u4f5c\u7528\u5206\u522b\u662f\uff1a<\/p>\n<p>  n\uff0c\u5fc5\u8981\u53c2\u6570\u3002\u8fd9\u662f\u8f93\u51fa\u4fe1\u606f\u7684\u6570\u91cf\u3002\u6bd4\u5982n=1\uff0c\u5373\u4e3a1\u6761\uff0c\u4ee5\u6b64\u7c7b\u63a8\uff0c\u81f3\u591a\u8f93\u51fa8\u6761\u3002 format\uff0c\u975e\u5fc5\u8981\u3002\u8fd4\u56de\u7ed3\u679c\u7684\u683c\u5f0f\uff0c\u4e0d\u5b58\u5728\u6216\u8005\u7b49\u4e8exml\u65f6\uff0c\u8f93\u51fa\u4e3axml\u683c\u5f0f\uff0c\u7b49\u4e8ejs\u65f6\uff0c\u8f93\u51fajson\u683c\u5f0f idx\uff0c\u975e\u5fc5\u8981\u3002\u4e0d\u5b58\u5728\u6216\u8005\u7b49\u4e8e0\u65f6\uff0c\u8f93\u51fa\u5f53\u5929\u7684\u56fe\u7247\uff0c-1\u4e3a\u5df2\u7ecf\u9884\u5907\u7528\u4e8e\u660e\u5929\u663e\u793a\u7684\u4fe1\u606f\uff0c1\u5219\u4e3a\u6628\u5929\u7684\u56fe\u7247\uff0c\u4ee5\u6b64\u7c7b\u63a8\uff0cidx\u6700\u591a\u83b7\u53d6\u5230\u524d16\u5929\u7684\u56fe\u7247\u4fe1\u606f<\/p>\n<p>  \u5176\u4e2d\u7684\u201cimages\u201d\u8282\u70b9\u4e0b\u7684\u201curl\u201d\u503c\u4fbf\u662f\u6211\u4eec\u8981\u83b7\u53d6\u7684\u56fe\u50cf\u5730\u5740\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u96f7\u7535\u6cd5\u738b\u6768\u6c38\u4fe1<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6709\u7684\uff0c\u53c2\u8003whmcs\u70b9download\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u85cf\u955c\u4eba<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e0d\u6e05\u695a\uff0c\u6ca1\u6709\u7684\uff0c\u95ee\u95ee\u5927\u4f6c\u4eec\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u6240\u9577<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\thttps:\/\/cn.bing.com\/HPImageArchive.aspx?idx=0&amp;n=1&nbsp; &nbsp;\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Laoliu<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t&lt;%<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; if (bgcount == 0 ) then<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local http = require &quot;luci.sys&quot;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local json = require &quot;luci.jsonc&quot;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local bg_url = media .. &quot;\/img\/bg1.jpg&quot;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local bing = http.httpget(&quot;http:\/\/www.bing.com\/HPImageArchive.aspx?format=js&amp;idx=0&amp;n=1&amp;mkt=en-US&quot;)<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (bing and bing ~= &#8221;) then<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local bingjson= json.parse(bing)<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bg_url = &quot;https:\/\/www.bing.com&quot; .. bingjson.images.url<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; %&gt;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; style=&quot;background-image:url(&lt;%=bg_url%&gt;)&quot;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &lt;% elseif(bgcount &gt; 0 and currentBg[&quot;type&quot;] ~= &quot;mp4&quot;) then %&gt;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; style=&quot;background-image:url(&lt;%=currentBg.url%&gt;)&quot;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &lt;% end%&gt;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &gt;&lt;\/div&gt;\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Laoliu<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\thttp:\/\/whmcs.download\/data\/bing.php<br \/>  http:\/\/whmcs.download\/data\/bing.php\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Laoliu<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 Laoliu \u4e8e 2020-12-1 19:25 \u7f16\u8f91 <\/p>\n<p> https:\/\/raw.githubusercontent.com\/shellta\/bing-wallpaper\/master\/bing.php<\/p>\n<p>  \u8fd9\u4e2a\u662f\u76f4\u63a5\u8f93\u51fa\u56fe\u7247\u3002\u4e0d\u8df3\u8f6c\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Laoliu<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 Laoliu \u4e8e 2020-12-1 19:25 \u7f16\u8f91 <\/p>\n<p> https:\/\/raw.githubusercontent.com\/sdlzhd\/bing-images\/master\/bing_images.php<br \/>  \u76f4\u63a5\u8df3\u8f6c\u81f3\u56fe\u7247\u94fe\u63a5\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>MrBlack<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u611f\u8c22\u5206\u4eab\uff0c\u4e4b\u524d\u627e\u8fc7\u6ca1\u627e\u5230\uff0c\u6b63\u597d\u7528\u4e0a\uff0c\u4e00\u4f1a\u4e8c\u5c31\u53bb\u8bd5\u8bd5\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>programer \u5927\u4f6c\u6709\u8bdd\u8bf4 :&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/213098"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=213098"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/213098\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=213098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=213098"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=213098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}