瀏覽代碼

海报调试

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,