瀏覽代碼

海报调试

lizhen_gitee 1 年之前
父節點
當前提交
38dfad07c3
共有 3 個文件被更改,包括 1 次插入3 次删除
  1. 0 1
      application/admin/controller/Package.php
  2. 0 1
      application/api/controller/company/Package.php
  3. 1 1
      application/common.php

+ 0 - 1
application/admin/controller/Package.php

@@ -187,7 +187,6 @@ class Package extends Backend
             $client = new Client();
             $tk = getAccessToken();
             $miniCodeConfig = config('param.mini_code');
-            //$miniCodeConfig['env_version'] = 'trial'; //强制体验版
             $miniCodeConfig['scene'] = 'id='.$id.'&shopId='.$companyid;
             $res2 = $client->request('POST', 'https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token='.$tk, [
                 'json' => $miniCodeConfig,

+ 0 - 1
application/api/controller/company/Package.php

@@ -285,7 +285,6 @@ class Package extends Apic
             $client = new Client();
             $tk = getAccessToken();
             $miniCodeConfig = config('param.mini_code');
-            $miniCodeConfig['env_version'] = 'trial'; //强制体验版
             $miniCodeConfig['scene'] = 'id='.$id.'&shopId='.$companyid;
             $res2 = $client->request('POST', 'https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token='.$tk, [
                 'json' => $miniCodeConfig,

+ 1 - 1
application/common.php

@@ -893,7 +893,7 @@ if(!function_exists('getAccessToken')) {
      */
     function getAccessToken()
     {
-        $accessToken = cache('access_token');
+        $accessToken = false;
         if (!$accessToken) {
             $config = \think\Config::get('user_wxMiniProgram');
             $appId = isset($config['appid']) ? $config['appid'] : '';