Răsfoiți Sursa

feat(api): 更新后端API地址为生产环境域名

- 将登录接口地址从本地IP更新为生产域名
- 将用户信息更新接口地址从本地IP更新为生产域名
- 将获取用户信息接口地址从本地IP更新为生产域名
mcbaiyun 2 luni în urmă
părinte
comite
4a703bae3f

+ 1 - 1
src/pages/login/login.vue

@@ -48,7 +48,7 @@ async function onSelectRole(role: number) {
     console.log('uni.login success:', loginRes)
     const code = loginRes.code
     const response = await uni.request({
-      url: 'http://10.20.30.111:8080/get_openid',
+      url: 'https://wx.baiyun.work/get_openid',
       method: 'POST',
       header: { 'Content-Type': 'application/json' },
       data: { code: code, role: role }

+ 1 - 1
src/pages/profile/complete-info.vue

@@ -209,7 +209,7 @@ const onSubmit = async () => {
   try {
     const token = uni.getStorageSync('token')
     const response = await uni.request({
-      url: 'http://10.20.30.111:8080/update_user_info',
+      url: 'https://wx.baiyun.work/update_user_info',
       method: 'POST',
       header: {
         'Content-Type': 'application/json',

+ 1 - 1
src/pages/profile/profile.vue

@@ -87,7 +87,7 @@ const fetchUserInfo = async () => {
     const token = uni.getStorageSync('token')
     if (!token) return
     const response = await uni.request({
-      url: 'http://10.20.30.111:8080/user_info',
+      url: 'https://wx.baiyun.work/user_info',
       method: 'POST',
       header: {
         'Content-Type': 'application/json',