瀏覽代碼

开启正式

15954078560 2 年之前
父節點
當前提交
29e1234c2b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      application/api/controller/Index.php

+ 2 - 2
application/api/controller/Index.php

@@ -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');