From 233fdc1cc07df94e54036fa421addf1e17cdff83 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期三, 28 二月 2024 10:58:12 +0800 Subject: [PATCH] # --- pages/api/common/common.js | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/pages/api/common/common.js b/pages/api/common/common.js index 5b4a46d..a2b2f18 100644 --- a/pages/api/common/common.js +++ b/pages/api/common/common.js @@ -12,10 +12,11 @@ var login = await uni.request({ url: `${baseUrl}/login.action`, data: { - username: user.username, + mobile: user.username, password: md5.hex_md5(user.password) }, }).then((result) => { + console.log(result); result = result.data if (result.code === 200 && result.data.token) { uni.setStorageSync('token', result.data.token); -- Gitblit v1.9.1