{"id":52304,"date":"2020-04-09T14:41:54","date_gmt":"2020-04-09T06:41:54","guid":{"rendered":"http:\/\/4563.org\/?p=52304"},"modified":"2020-04-09T14:41:54","modified_gmt":"2020-04-09T06:41:54","slug":"%e4%bb%85%e4%bb%85%e4%b8%8d%e5%88%b03kb%e7%9a%84%e9%98%bf%e9%87%8c%e5%9b%be%e5%ba%8a%e6%ba%90%e7%a0%81","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=52304","title":{"rendered":"\u4ec5\u4ec5\u4e0d\u52303KB\u7684\u963f\u91cc\u56fe\u5e8a\u6e90\u7801"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u5e08\u592a<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u4ec5\u4ec5\u4e0d\u52303KB\u7684\u963f\u91cc\u56fe\u5e8a\u6e90\u7801<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u5e08\u592a \u4e8e 2020-4-9 10:50 \u7f16\u8f91 <\/p>\n<p> &nbsp; &nbsp; &nbsp; &nbsp; \u6e90\u7801\u6765\u81ea\u5e16\u5b50\uff1ahttps:\/\/www.hostloc.com\/thread-650301-1-1.html<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; \u4ed6\u90a3\u4e2a\u524d\u7aef\u597d\u770b\u662f\u597d\u770b\uff0c\u590d\u5236\u6709\u70b9\u95ee\u9898\uff0c\u4e00\u70b9\u5c31\u6253\u5f00\u4e86\u4e0a\u4f20\u7a97\u53e3\uff0c\u6240\u4ee5\u968f\u4fbf\u6539\u4e86\u4e00\u4e0b\uff0c\u5927\u5c0f\u4e0d\u52303KB<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; \u6f14\u793a\u5730\u5740\uff1ahttp:\/\/400008.xyz\/ali<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; https:\/\/ae01.alicdn.com\/kf\/U730af9689d924454b9a497af200c2b3eR.png<\/p>\n<p>  \u76f4\u63a5\u4e0a\u6e90\u7801\uff0c\u4e0b\u8fb9\u4e24\u4e2a\u6587\u4ef6\u4fdd\u5b58\u5230\u4efb\u610f\u76ee\u5f55\u5373\u53ef\uff1b<\/p>\n<p>  index.html<br \/>  CSS\u90a3\u884c\u88abLOC\u541e\u4e86\uff0chttps:\/\/www.layuicdn.com\/layui-v2.5.6\/css\/layui.css<\/p>\n<p>  &lt;!DOCTYPE html&gt;<br \/>  &lt;html&gt;<br \/>  &lt;head&gt;<br \/>  &lt;meta charset=&quot;utf-8&quot;&gt;<br \/>  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, maximum-scale=1&quot;&gt;<br \/>  &lt;title&gt;\u963f\u91cc\u56fe\u5e8a\u4e28\u5e08\u592a&lt;\/title&gt;<br \/>  &lt;link rel=&quot;stylesheet&quot; &gt;<br \/>  &lt;style type=&quot;text\/css&quot;&gt;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; body { margin: auto; max-width: 720px; word-wrap:break-word; }<br \/>  &lt;\/style&gt;<br \/>  &lt;\/head&gt;<br \/>  &lt;body&gt;<\/p>\n<p>  &lt;fieldset class=&quot;layui-elem-field layui-field-title&quot; style=&quot;margin-top: 30px;&quot;&gt;<br \/>  &lt;legend&gt;\u62d6\u62fd\u4e0a\u4f20&lt;\/legend&gt;<br \/>  &lt;\/fieldset&gt; <\/p>\n<p>  &lt;div class=&quot;layui-upload-drag&quot; id=&quot;upload&quot;&gt;<br \/>  &lt;i class=&quot;layui-icon&quot;&gt;\ue67c&lt;\/i&gt;<br \/>  &lt;p&gt;\u70b9\u51fb\u4e0a\u4f20\uff0c\u6216\u5c06\u6587\u4ef6\u62d6\u62fd\u5230\u6b64\u5904&lt;\/p&gt;<br \/>  &lt;\/div&gt;<\/p>\n<p>  &lt;div class=&quot;layui-hide&quot; id=&quot;uploadDemoView&quot;&gt;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &lt;fieldset class=&quot;layui-elem-field layui-field-title&quot; style=&quot;margin-top: 30px;&quot;&gt;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&lt;legend&gt;\u6587\u4ef6\u4fe1\u606f&lt;\/legend&gt;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &lt;\/fieldset&gt;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;&quot; alt=&quot;\u4e0a\u4f20\u6210\u529f\u540e\u6e32\u67d3&quot; style=&quot;max-width: 300px&quot;&gt;&lt;hr&gt;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &lt;span id=&quot;url&quot;&gt;&lt;\/span&gt;<br \/>  &lt;\/div&gt;<\/p>\n<p>  &lt;script src=&quot;https:\/\/www.layuicdn.com\/layui-v2.5.6\/layui.js&quot;&gt;&lt;\/script&gt;<br \/>  &lt;script&gt;<br \/>  layui.use([&#8216;layer&#8217;, &#8216;form&#8217;, &#8216;upload&#8217;], function(){<br \/>  var layer = layui.layer<br \/>  ,$ = layui.jquery<br \/>  ,form = layui.form<br \/>  ,upload = layui.upload;<\/p>\n<p>  upload.render({<br \/>  &nbsp; &nbsp; elem: &#8216;#upload&#8217;<br \/>  &nbsp; &nbsp; ,url: &#8216;upload.php&#8217; \/\/\u6539\u6210\u60a8\u81ea\u5df1\u7684\u4e0a\u4f20\u63a5\u53e3<br \/>  &nbsp; &nbsp; ,done: function(res){<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;layer.msg(&#8216;\u4e0a\u4f20\u6210\u529f&#8217;);<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;layui.$(&#8216;#uploadDemoView&#8217;).removeClass(&#8216;layui-hide&#8217;).find(&#8216;img&#8217;).attr(&#8216;src&#8217;,res.url);<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;layui.$(&#8216;#url&#8217;).html(res.url);<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;\/\/console.log(res)<br \/>  &nbsp; &nbsp; }<br \/>  });<br \/>  });<br \/>  &lt;\/script&gt; <br \/>  &lt;\/body&gt;<br \/>  &lt;\/html&gt;<\/p>\n<p>  upload.php<\/p>\n<p>  &lt;?php<\/p>\n<p>  $file = $_FILES[&#8216;file&#8217;];<br \/>  if (is_uploaded_file($file[&#8216;tmp_name&#8217;]))<br \/>  {<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; $extension = pathinfo($file[&#8216;name&#8217;])[&#8216;extension&#8217;];<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; $imgname = time().rand(100,1000).&#8217;.&#8217;.$extension;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; if (move_uploaded_file($file[&#8216;tmp_name&#8217;], $imgname))<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $data= array<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8216;scene&#8217; =&gt; &#8216;aeMessageCenterV2ImageRule&#8217;,<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8216;name&#8217; =&gt;$imgname,<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8216;file&#8217; =&gt; new CURLFile(realpath($imgname))<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $res = json_decode(icurl(&#8216;https:\/\/kfupload.alibaba.com\/mupload&#8217;,$data));<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @unlink($imgname);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($res-&gt;msg == 0)<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo json_encode($res);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; }<br \/>  }<\/p>\n<p>  function icurl($url, $data){<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; $ch = curl_init();<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; curl_setopt($ch,CURLOPT_HEADER, 0);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; curl_setopt($ch, CURLOPT_URL, $url);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; curl_setopt($ch, CURLOPT_POST, 1);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; curl_setopt($ch, CURLOPT_POSTFIELDS, $data);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; $res = curl_exec($ch);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; curl_close($ch);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; return $res;<br \/>  }\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>poko<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u524d\u6392\u7ed1\u5b9azsbd\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Zeros<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u524d\u6392\uff0c\uff0c\uff0c\u5927\u4f6cnb:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Yrh<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7ed1\u5b9a\u7ed1\u5b9a :lol:lol:lol zsbd\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>ncnc<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e4b\u524d\u7528\u8fc7 \u653e\u5230\u4e3b\u9875\u7684\u4fa7\u680f\u5f53\u5c0f\u5de5\u5177 \u4e0d\u8fc7\u611f\u89c9\u5c31\u6211\u81ea\u5df1\u7528 \u5c31\u5220\u9664\u4e86 :lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u6d41\u6cb3\u65f1\u6811<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e0d\u9519 \u627e\u65f6\u95f4\u6211\u4e5f\u6539\u4e00\u4e2a\u73a9\u73a9:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>mjsz<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u81ea\u5df1\u7528\u7528\u633a\u597d\u3002\u3002\u3002\u3002\u7b80\u5355\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>h20<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fd8\u662f\u592a\u957f\u4e86\uff0c\u6211\u4e00\u4e2aJSP\u5c31\u641e\u5b9a\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>jpfree<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5927\u4f6c\u5389\u5bb3\u554a\uff0c\u5982\u4f55\u5728WP\u91cc\u7528\u5462\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>yushui<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e0d\u9519\uff0c\u6253\u4e00\u4e2a\u81ea\u5df1\u73a9\u73a9\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5e08\u592a \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u4ec5\u4ec5\u4e0d\u52303K&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\/52304"}],"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=52304"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/52304\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=52304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=52304"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=52304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}