...
|
...
|
@@ -229,7 +229,7 @@ class SalesmangoodsController extends WeChatBaseController{ |
|
|
|
|
|
$access_token=$this->getAccessToken();
|
|
|
$filepath = $_POST['mediaId'];
|
|
|
$str = date('YmdHis').mt_rand('100','999').'.png';
|
|
|
$str = 'uploads/'.mt_rand('100','999').'.png';
|
|
|
$targetName = $str;
|
|
|
cache('urll',$targetName);
|
|
|
$access_token = $access_token['accessToken'];
|
...
|
...
|
@@ -238,10 +238,6 @@ class SalesmangoodsController extends WeChatBaseController{ |
|
|
cache('__FILE__',__FILE__);
|
|
|
file_put_contents($targetName,$file);
|
|
|
|
|
|
|
|
|
rename('20190618181700945.png','/uploads/text.jpg');
|
|
|
|
|
|
|
|
|
/* $ch = curl_init("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=$access_token&media_id=$filepath");
|
|
|
cache('pppp',$ch);
|
|
|
$fp = fopen($targetName, 'w');
|
...
|
...
|
|