正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -212,7 +212,7 @@ class SalesmangoodsController extends WeChatBaseController{ | @@ -212,7 +212,7 @@ class SalesmangoodsController extends WeChatBaseController{ | ||
212 | 212 | ||
213 | public function text(){ | 213 | public function text(){ |
214 | 214 | ||
215 | - dump(cache('msgssss')); | 215 | + dump(cache('gg')); |
216 | dump(cache('pp')); | 216 | dump(cache('pp')); |
217 | dump(cache('oo')); | 217 | dump(cache('oo')); |
218 | dump(cache('ii')); | 218 | dump(cache('ii')); |
@@ -229,7 +229,7 @@ class SalesmangoodsController extends WeChatBaseController{ | @@ -229,7 +229,7 @@ class SalesmangoodsController extends WeChatBaseController{ | ||
229 | $filepath = $_POST['mediaId'];//文件的绝对路径 | 229 | $filepath = $_POST['mediaId'];//文件的绝对路径 |
230 | $str = date('YmdHis').mt_rand('100','999').'.jpg'; | 230 | $str = date('YmdHis').mt_rand('100','999').'.jpg'; |
231 | $targetName = '/uploads/'.$str; | 231 | $targetName = '/uploads/'.$str; |
232 | - | 232 | + cache('gg',111); |
233 | $ch = curl_init("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath"); | 233 | $ch = curl_init("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath"); |
234 | cache('pp',111); | 234 | cache('pp',111); |
235 | $fp = fopen($targetName, 'wb'); | 235 | $fp = fopen($targetName, 'wb'); |
-
请 注册 或 登录 后发表评论