...
|
...
|
@@ -213,10 +213,10 @@ class SalesmangoodsController extends WeChatBaseController{ |
|
|
public function text(){
|
|
|
|
|
|
dump(cache('msgssss'));
|
|
|
dump(cache('a1'));
|
|
|
dump(cache('a100'));
|
|
|
dump(cache('a200'));
|
|
|
dump(cache('a300'));
|
|
|
dump(cache('pp'));
|
|
|
dump(cache('oo'));
|
|
|
dump(cache('ii'));
|
|
|
dump(cache('uu'));
|
|
|
|
|
|
}
|
|
|
|
...
|
...
|
@@ -231,13 +231,13 @@ class SalesmangoodsController extends WeChatBaseController{ |
|
|
$targetName = '/uploads/'.$str;
|
|
|
|
|
|
$ch = curl_init("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath");
|
|
|
|
|
|
cache('pp',111);
|
|
|
$fp = fopen($targetName, 'wb');
|
|
|
|
|
|
cache('oo',111);
|
|
|
curl_setopt($ch, CURLOPT_FILE, $fp);
|
|
|
|
|
|
cache('ii',111);
|
|
|
curl_setopt($ch, CURLOPT_HEADER, 0);
|
|
|
|
|
|
cache('uu',111);
|
|
|
$msg["status"] = curl_exec($ch);
|
|
|
$msg["filename"] = $str;
|
|
|
curl_close($ch);
|
...
|
...
|
|