Ver código fonte

小程序上架,一些东西改正式版

lizhen 1 dia atrás
pai
commit
db0a8df550

+ 1 - 1
application/common/library/Wechat.php

@@ -260,7 +260,7 @@ class Wechat{
             'page'        => 'pages/index/index',
             'touser'      => $openid,
             'data'        => $data, //模板内容,格式形如{ "phrase3": { "value": "审核通过" }, "name1": { "value": "订阅" }, "date2": { "value": "2019-12-25 09:42" } }
-            'miniprogram_state' => 'trial', //跳转小程序类型:developer为开发版;trial为体验版;formal为正式版;默认为正式版
+            'miniprogram_state' => 'formal', //跳转小程序类型:developer为开发版;trial为体验版;formal为正式版;默认为正式版
             'lang'              => 'zh_CN',
         ];
 

+ 1 - 1
application/index/controller/Index.php

@@ -34,7 +34,7 @@ class Index extends Controller
         $data = [
             'scene' => '1=1', //二维码传入参数
             'page' => $page_url, //扫码后进入页面
-            'env_version' => 'trial', //要打开的小程序版本。正式版为 "release",体验版为 "trial",开发版为 "develop"。默认是正式版。
+            'env_version' => 'release', //要打开的小程序版本。正式版为 "release",体验版为 "trial",开发版为 "develop"。默认是正式版。
             'width' => 280,  //二维码的宽度,单位 px,最小 280px,最大 1280px
             'auto_color' => false, //自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调,默认 false
             'is_hyaline' => false, //是否需要透明底色,为 true 时,生成透明底色的小程序