|
@@ -14,7 +14,7 @@ class WeChatPort extends Controller
|
|
|
// 获取微信小程序AccessToken
|
|
|
public static function getAccessToken()
|
|
|
{
|
|
|
- var_dump(config('mini_program')['app_id'],config('mini_program')['secret']);
|
|
|
+ var_dump(config('mini_program')['app_id'],config('mini_program')['secret'],3333);
|
|
|
$res = http_curl('https://api.weixin.qq.com/cgi-bin/token?appid='.config('mini_program')['app_id'].'&secret='.config('mini_program')['secret'].'&grant_type=client_credential');
|
|
|
return $res;
|
|
|
}
|