lizhen_gitee 1 年間 前
コミット
7e410dd690

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

@@ -167,7 +167,7 @@ class Package extends Backend
             $result = $row->allowField(true)->save($params);
             Db::commit();
 
-            $this->getMiniCode($ids,$oldrow,$row['company_id']);
+            $this->getMiniCode($ids,[],$row['company_id']);
 
         } catch (ValidateException|PDOException|Exception $e) {
         Db::rollback();

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

@@ -285,7 +285,7 @@ class Package extends Apic
             $client = new Client();
             $tk = getAccessToken();
             $miniCodeConfig = config('param.mini_code');
-            //$miniCodeConfig['env_version'] = 'trial'; //强制体验版
+            $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,