no message

This commit is contained in:
zhanchao 2026-02-06 17:33:15 +08:00
parent b21609d1d8
commit 1f52873509
4 changed files with 6 additions and 5 deletions

View File

@ -1,7 +1,7 @@
MP_API_BASE_URL=http://localhost:8080
MP_IMAGE_URL=https://patient.youcan365.com
MP_CACHE_PREFIX=development
MP_WX_APP_ID=wx93af55767423938e
MP_WX_APP_ID=wx1d8337a40c11d66c
MP_CORP_ID=wwe3fb2faa52cf9dfb
MP_TIM_SDK_APP_ID=1600123876
MP_WX_MP_APP_ID=wxce46d19ff09c1832

View File

@ -1,7 +1,7 @@
MP_API_BASE_URL=http://localhost:8080
MP_IMAGE_URL=https://patient.youcan365.com
MP_CACHE_PREFIX=development
MP_WX_APP_ID=wx93af55767423938e
MP_WX_APP_ID=wx1d8337a40c11d66c
MP_CORP_ID=wwe3fb2faa52cf9dfb
MP_TIM_SDK_APP_ID=1600123876
MP_WX_MP_APP_ID=wxce46d19ff09c1832

View File

@ -1,6 +1,6 @@
{
"name" : "ykt-wxapp",
"appid" : "__UNI__06F5B0E",
"appid" : "__UNI__C0FBE5A",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",

View File

@ -27,7 +27,7 @@ export default defineStore("accountStore", () => {
}
async function login(phoneCode) {
const res = await getLoginPromise(phoneCode);
const res = getLoginPromise(phoneCode);
loginPromise.value = null;
return res
}
@ -51,13 +51,14 @@ export default defineStore("accountStore", () => {
if (code) {
// 将小程序 code + 公众号 code 一起传给后端,进行用户映射(后端用各自 appid/secret 换 openid/unionid
const res = await api('wxAppLogin', {
appid,
phoneCode,
code, // 小程序code
mpCode, // 公众号 code如果有
corpId,
});
if (mpCode) remove("mp-oauth-code");
if (res.success && res.data) {
if (!res.data.mobile) {
const target = '/pages/login/login';