作者 anyv
1 个管道 的构建 通过 耗费 1 秒

5

@@ -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');