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

4

@@ -213,6 +213,10 @@ class SalesmangoodsController extends WeChatBaseController{ @@ -213,6 +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('a2'));
  218 + dump(cache('a3'));
  219 + dump(cache('a4'));
216 220
217 } 221 }
218 222
@@ -227,9 +231,13 @@ class SalesmangoodsController extends WeChatBaseController{ @@ -227,9 +231,13 @@ class SalesmangoodsController extends WeChatBaseController{
227 $targetName = '/uploads/'.$str; 231 $targetName = '/uploads/'.$str;
228 cache('msgssss',$targetName); 232 cache('msgssss',$targetName);
229 $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('a1',1111);
230 $fp = fopen($targetName, 'wb'); 235 $fp = fopen($targetName, 'wb');
  236 + cache('a2',2222);
231 curl_setopt($ch, CURLOPT_FILE, $fp); 237 curl_setopt($ch, CURLOPT_FILE, $fp);
  238 + cache('a3',3333);
232 curl_setopt($ch, CURLOPT_HEADER, 0); 239 curl_setopt($ch, CURLOPT_HEADER, 0);
  240 + cache('a4',4444);
233 $msg["status"] = curl_exec($ch); 241 $msg["status"] = curl_exec($ch);
234 $msg["filename"] = $str; 242 $msg["filename"] = $str;
235 curl_close($ch); 243 curl_close($ch);