lizhen_gitee преди 1 година
родител
ревизия
7e410dd690
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      application/admin/controller/Package.php
  2. 1 1
      application/api/controller/company/Package.php

+ 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,