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

5

... ... @@ -212,7 +212,7 @@ class SalesmangoodsController extends WeChatBaseController{
public function text(){
dump(cache('msgssss'));
dump(cache('gg'));
dump(cache('pp'));
dump(cache('oo'));
dump(cache('ii'));
... ... @@ -229,7 +229,7 @@ class SalesmangoodsController extends WeChatBaseController{
$filepath = $_POST['mediaId'];//文件的绝对路径
$str = date('YmdHis').mt_rand('100','999').'.jpg';
$targetName = '/uploads/'.$str;
cache('gg',111);
$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');
... ...