...
|
...
|
@@ -210,6 +210,12 @@ class SalesmangoodsController extends WeChatBaseController{ |
|
|
|
|
|
}
|
|
|
|
|
|
public function text(){
|
|
|
|
|
|
dump(cache('msg'));
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 上传图片
|
|
|
*/
|
...
|
...
|
@@ -227,11 +233,13 @@ class SalesmangoodsController extends WeChatBaseController{ |
|
|
$msg["filename"] = $str;
|
|
|
curl_close($ch);
|
|
|
fclose($fp);
|
|
|
cache('msg',$msg);
|
|
|
return json_encode($msg);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function getAccessToken() {
|
|
|
// access_token 应该全局存储与更新
|
|
|
// 获取数据库中的access_token
|
...
|
...
|
|