From 8b47a6acff1683df5764c5df1b2460110255f544 Mon Sep 17 00:00:00 2001 From: jt <jt@activesoft.com.cn> Date: 星期一, 29 四月 2024 17:16:33 +0800 Subject: [PATCH] 登录时将获取的mac地址例如:78b8d67511ca 作为client_info传进api/user/ace/VerifyPassword接口里 --- store/index.js | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/store/index.js b/store/index.js index 157d1fb..8d2cdac 100644 --- a/store/index.js +++ b/store/index.js @@ -11,6 +11,7 @@ }, state: { hasLogin: false, + deviceId:'', apkVersionInfo: "", loginProvider: "", areaFunc:'', @@ -38,6 +39,9 @@ OIMongodbSvr: '' //115.29.185.26:5201 }, mutations: { + setDeviceId(state, ret) { + state.deviceId = ret; + }, setUrl(state, url) { state.url = url; }, @@ -124,6 +128,9 @@ }, }, getters: { + getDeviceId(state, ret) { + return state.deviceId + }, GetApkServionInfo(state) { return state.apkVersionInfo }, @@ -264,10 +271,14 @@ app_type: "mobox", user_login: Base64.encode(univerifyInfo.uname), user_psw: Base64.encode(univerifyInfo.pwd), + client_info:{ + type: 3, //瀹㈡埛绔被鍨嬶細0鈥揚C锛�鈥揥EB锛�鈥撳畨鍗擄紝3鈥撳畨鍗揚AD锛�鈥搃Phone锛�5鈥搃Pad锛�6鈥撳叾瀹�+ num: state.deviceId //PDA鐨勮澶囧彿 + } }; header={}; } - + console.log(univerifyInfo); uni.request({ url: url, data: univerifyInfo, -- Gitblit v1.9.1