Browse Source

二维码版本

guoshuai 1 week ago
parent
commit
6b1b2f062b

+ 7 - 0
src/main/java/com/qmrb/system/pojo/entity/ToolWxConfig.java

@@ -58,5 +58,12 @@ public class ToolWxConfig implements Serializable {
      */
     @TableField("app_secret")
     private String appSecret;
+    
+    /**
+     * 版本
+     * 要打开的小程序版本。正式版为 "release",体验版为 "trial",开发版为 "develop"。默认是正式版。
+     */
+    @TableField("env_version")
+    private String envVersion;
 
 }

+ 1 - 1
src/main/java/com/qmrb/system/service/impl/UserServiceImpl.java

@@ -164,7 +164,7 @@ public class UserServiceImpl extends ServiceImpl<OrderMapper, Order> implements
             jsonObject.put("scene", "contractId=" + key); //参数自定义
             jsonObject.put("page","pages/index/index");//要生成小程序码的链接
             jsonObject.put("width",300);
-            jsonObject.put("env_version", "develop");
+            jsonObject.put("env_version", conf.getEnvVersion());
             out.print(jsonObject);
             // flush输出流的缓冲
             out.flush();