|
@@ -978,8 +978,8 @@ class Index extends Api
|
|
|
|
|
|
//生成小程序邀请二维码
|
|
|
public function getqrcode($id = 0) {
|
|
|
-// $access_token = Cache::get('access_token');
|
|
|
- $access_token = '';
|
|
|
+ $access_token = Cache::get('access_token');
|
|
|
+// $access_token = '';
|
|
|
if (!$access_token) {
|
|
|
//获取$access_token
|
|
|
$url = 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid='.config('wxchatpay.app_id').'&secret='.config('wxchatpay.app_secret');
|