فهرست منبع

微信小程序登录

wangliang 1 سال پیش
والد
کامیت
4969202e10

+ 2 - 2
sop-business/src/main/java/com/qmth/sop/business/service/impl/TWxappInfoServiceImpl.java

@@ -158,7 +158,7 @@ public class TWxappInfoServiceImpl extends ServiceImpl<TWxappInfoMapper, TWxappI
      * @return
      */
     private JSONObject decrypt(String encryptedData, String iv, String sessionKey) {
-        String jsonStr;
+        String jsonStr = null;
         try {
             BASE64Decoder base64Decoder = new BASE64Decoder();
             /**
@@ -181,7 +181,7 @@ public class TWxappInfoServiceImpl extends ServiceImpl<TWxappInfoMapper, TWxappI
             byte[] original = cipher.doFinal(encryptedByte);
             jsonStr = new String(original);
         } catch (Exception e) {
-            throw ExceptionResultEnum.ERROR.exception("登录失败");
+            throw ExceptionResultEnum.ERROR.exception("登录失败:" + e.getMessage());
         }
         return JSONObject.parseObject(jsonStr);
     }

+ 12 - 1
sop-business/src/main/resources/db/log/wangliang_update_log.sql

@@ -1203,4 +1203,15 @@ ALTER TABLE t_wxapp_info ADD id BIGINT
     COMMENT '主键' NOT NULL first;
 
 ALTER TABLE t_wxapp_info ADD CONSTRAINT pkt_wxapp_info
-    PRIMARY KEY (id);
+    PRIMARY KEY (id);
+
+--2023.9.20update
+UPDATE sys_privilege
+SET name='批量启用', url='BatchEnable', `type`='BUTTON', parent_id=5, `sequence`=4, property='AUTH', related='1045', enable=1, default_auth=0, front_display=1
+WHERE id=1048;
+UPDATE sys_privilege
+SET name='批量禁用', url='BatchUnEnable', `type`='BUTTON', parent_id=5, `sequence`=5, property='AUTH', related='272', enable=1, default_auth=0, front_display=1
+WHERE id=1049;
+UPDATE sys_privilege
+SET name='批量导入', url='BatchImport', `type`='BUTTON', parent_id=5, `sequence`=6, property='AUTH', related='1046', enable=1, default_auth=0, front_display=1
+WHERE id=1050;