高晟悦 1 mesiac pred
rodič
commit
9fdb559acc

+ 2 - 1
env/.env.development

@@ -5,7 +5,8 @@ NODE_ENV = "development"
 
 # 请求地址  
 # VITE_APP_API_BASE_URL = "https://cs001.kasitesoft.com/"
-VITE_APP_API_BASE_URL = "api/"
+VITE_APP_API_BASE_URL = "https://fzsclqyy.com/KasiteWeb/"
+# VITE_APP_API_BASE_URL = "api/"
 
 # 代理请求地址
 VITE_APP_PROXY_API_BASE_URL = "https://fzsclqyy.com/KasiteWeb/"

+ 7 - 4
hook/use-get-memberId-by-encrypt/index.ts

@@ -3,10 +3,13 @@ import { GetMemberIdByEncryptData } from '@/pagesCrm/service';
 
 export const useGetMemberIdByEncryptData = async (EncryptData) => {
 	if (!EncryptData) return;
-	const res = await GetMemberIdByEncryptData({
+	const { resData, resp } = await GetMemberIdByEncryptData({
 		EncryptData,
 	});
-	console.log(res);
-	store.commit('setCurrentUser', res[0]);
-	return res;
+	console.log(resData);
+	if(resData.RespCode != "10000") {
+		throw new Error(`${resData.RespMessage || "获取身份信息失败"}`);
+	}
+	store.commit('setCurrentUser', resp[0]);
+	return resp[0];
 };

+ 3 - 3
hook/use-small-program-login/index.ts

@@ -146,10 +146,10 @@ const smallProgramLoginByGONGZHONGHAODiy = (app: App.AppInstance) => {
 			store.commit('setToken', token);
 			store.commit('setOpenId', openid);
 			// 当前时间
-			var timestamp = Date.parse(new Date());
+			// var timestamp = Date.parse(new Date());
 			// 加上过期期限
-			var expiration = timestamp + 24 * 60 * 60 * 1000;
-			uni.setStorageSync('data_expiration', expiration);
+			// var expiration = timestamp + 24 * 60 * 60 * 1000;
+			// uni.setStorageSync('data_expiration', expiration);
 			// location.href = `${useDomain(true)}/#/`;
 			resolve(true);
 		}