@@ -39,7 +39,9 @@ class Qc extends Base {
public function index()
{
+ var_dump(config('mini_program')['app_id'],config('mini_program')['secret'],3333);
$res = WeChatPort::getAccessToken();
+
var_dump($res);
}
@@ -14,7 +14,7 @@ class WeChatPort extends Controller
// 获取微信小程序AccessToken
public static function getAccessToken()
- 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;