lizhen_gitee 1 gadu atpakaļ
vecāks
revīzija
38dfad07c3

+ 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'] : '';