From 981c29e94b02fa7915057e78bdd233f258153f11 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Thu, 8 Sep 2022 09:23:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=99=BB=E5=BD=95=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/java110/api/Java110SessionApi.js | 7 ++++--- manifest.json | 9 ++++++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/java110/api/Java110SessionApi.js b/lib/java110/api/Java110SessionApi.js index 9fc7726..e90a77b 100644 --- a/lib/java110/api/Java110SessionApi.js +++ b/lib/java110/api/Java110SessionApi.js @@ -38,11 +38,12 @@ export function login(userName, passwd) { method: "POST", data: userInfo, success: function(res) { - if (res.statusCode != 200) { - reject(res.data); + let data = res.data; + if (data.code != 0) { + reject(data.msg); return; } - let data = res.data; + let _tmpUserInfo = data.userInfo; _tmpUserInfo['password'] = passwd; _tmpUserInfo['username'] = userName; diff --git a/manifest.json b/manifest.json index 2ab6363..f933852 100644 --- a/manifest.json +++ b/manifest.json @@ -93,6 +93,13 @@ } }, "domain" : "http://property.homecommunity.cn", - "title" : "物业版" + "title" : "物业版", + "sdkConfigs" : { + "maps" : { + "qqmap" : { + "key" : "4KSBZ-JOBCJ-ADKFY-FENTH-L2CF2-ULBAP" + } + } + } } }