正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -226,9 +226,10 @@ class SalesmangoodsController extends WeChatBaseController{ | @@ -226,9 +226,10 @@ class SalesmangoodsController extends WeChatBaseController{ | ||
226 | public function savePicture(){ | 226 | public function savePicture(){ |
227 | 227 | ||
228 | $access_token=$this->getAccessToken(); | 228 | $access_token=$this->getAccessToken(); |
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 | + cache('urll',$targetName); | ||
232 | $access_token = $access_token['accessToken']; | 233 | $access_token = $access_token['accessToken']; |
233 | $ch = curl_init("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath"); | 234 | $ch = curl_init("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath"); |
234 | cache('ppp',111); | 235 | cache('ppp',111); |
-
请 注册 或 登录 后发表评论