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

14

@@ -213,10 +213,10 @@ class SalesmangoodsController extends WeChatBaseController{ @@ -213,10 +213,10 @@ class SalesmangoodsController extends WeChatBaseController{
213 public function text(){ 213 public function text(){
214 214
215 dump(cache('msgssss')); 215 dump(cache('msgssss'));
216 - dump(cache('a1'));  
217 - dump(cache('a100'));  
218 - dump(cache('a200'));  
219 - dump(cache('a300')); 216 + dump(cache('pp'));
  217 + dump(cache('oo'));
  218 + dump(cache('ii'));
  219 + dump(cache('uu'));
220 220
221 } 221 }
222 222
@@ -231,13 +231,13 @@ class SalesmangoodsController extends WeChatBaseController{ @@ -231,13 +231,13 @@ class SalesmangoodsController extends WeChatBaseController{
231 $targetName = '/uploads/'.$str; 231 $targetName = '/uploads/'.$str;
232 232
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 - 234 + cache('pp',111);
235 $fp = fopen($targetName, 'wb'); 235 $fp = fopen($targetName, 'wb');
236 - 236 + cache('oo',111);
237 curl_setopt($ch, CURLOPT_FILE, $fp); 237 curl_setopt($ch, CURLOPT_FILE, $fp);
238 - 238 + cache('ii',111);
239 curl_setopt($ch, CURLOPT_HEADER, 0); 239 curl_setopt($ch, CURLOPT_HEADER, 0);
240 - 240 + cache('uu',111);
241 $msg["status"] = curl_exec($ch); 241 $msg["status"] = curl_exec($ch);
242 $msg["filename"] = $str; 242 $msg["filename"] = $str;
243 curl_close($ch); 243 curl_close($ch);