fix(api): 替换所有接口请求的域名为 guilixu-api.websoft.top

- 将获取 STS Token 的接口地址由 paopao-api 改为 guilixu-api
- 更新图片上传接口地址为新的 guilixu-api 域名
- 修改用户推广页面中邀请码链接和二维码接口的域名
- 更改注册页微信登录接口请求的域名为 guilixu-api
This commit is contained in:
2026-06-16 17:15:59 +08:00
commit f3886664f7
617 changed files with 77059 additions and 0 deletions

23
src/utils/server.ts Normal file
View File

@@ -0,0 +1,23 @@
import Taro from '@tarojs/taro'
import { ServerBaseUrl } from '@/config/app'
import type { User } from '@/api/system/user/model'
export const SERVER_API_URL = ServerBaseUrl
export function saveStorageByLoginUser(token: string, user: User) {
Taro.setStorageSync('TenantId', user.tenantId)
Taro.setStorageSync('access_token', token)
Taro.setStorageSync('UserId', user.userId)
Taro.setStorageSync('Phone', user.phone)
Taro.setStorageSync('WxNickName', user.nickname)
Taro.setStorageSync('User', user)
}
export function clearStorageByLoginUser() {
Taro.removeStorageSync('TenantId')
Taro.removeStorageSync('access_token')
Taro.removeStorageSync('UserId')
Taro.removeStorageSync('Phone')
Taro.removeStorageSync('WxNickName')
Taro.removeStorageSync('User')
}