正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
@@ -242,7 +242,7 @@ class SalesmangoodsController extends WeChatBaseController{ | @@ -242,7 +242,7 @@ class SalesmangoodsController extends WeChatBaseController{ | ||
242 | copy('20190618181700945.png','/uploads/'); | 242 | copy('20190618181700945.png','/uploads/'); |
243 | 243 | ||
244 | 244 | ||
245 | - $ch = curl_init("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath"); | 245 | + /* $ch = curl_init("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath"); |
246 | cache('pppp',$ch); | 246 | cache('pppp',$ch); |
247 | $fp = fopen($targetName, 'w'); | 247 | $fp = fopen($targetName, 'w'); |
248 | cache('oop',111); | 248 | cache('oop',111); |
@@ -250,10 +250,10 @@ class SalesmangoodsController extends WeChatBaseController{ | @@ -250,10 +250,10 @@ class SalesmangoodsController extends WeChatBaseController{ | ||
250 | cache('iip',111); | 250 | cache('iip',111); |
251 | curl_setopt($ch, CURLOPT_HEADER, 0); | 251 | curl_setopt($ch, CURLOPT_HEADER, 0); |
252 | cache('uup',111); | 252 | cache('uup',111); |
253 | - $msg["status"] = curl_exec($ch); | 253 | + $msg["status"] = curl_exec($ch);*/ |
254 | $msg["filename"] = $str; | 254 | $msg["filename"] = $str; |
255 | - curl_close($ch); | ||
256 | - fclose($fp); | 255 | + /*curl_close($ch); |
256 | + fclose($fp);*/ | ||
257 | 257 | ||
258 | return json_encode($msg); | 258 | return json_encode($msg); |
259 | 259 |
-
请 注册 或 登录 后发表评论