浏览代码

登录加密

seimin 1 年之前
父节点
当前提交
2a535bc6ff
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      pages/homePage/homePage.vue

+ 3 - 1
pages/homePage/homePage.vue

@@ -697,7 +697,9 @@
697 697
           password: this.password.trim(),
698 698
           type: 'APP'
699 699
         };
700
-        data = this.encryptByEnAES(JSON.stringify(data));
700
+        data = {
701
+          k: this.encryptByEnAES(JSON.stringify(data))
702
+        };
701 703
         post("/auth/login", data).then((res) => {
702 704
           uni.hideLoading();
703 705
           if (res.status == 200) {