瀏覽代碼

登录加密

seimin 2 年之前
父節點
當前提交
2a535bc6ff
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      pages/homePage/homePage.vue

+ 3 - 1
pages/homePage/homePage.vue

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