优化省市区和占位图片
This commit is contained in:
@@ -2,7 +2,7 @@ import { UserInfo } from "@/components/UserInfo";
|
||||
import { API_CONFIG } from "@/config/api";
|
||||
import httpService, { ApiResponse } from "./httpService";
|
||||
import uploadFiles from "./uploadFiles";
|
||||
import * as Taro from "@tarojs/taro";
|
||||
import * as Taro from "@tarojs/taro";
|
||||
import getCurrentConfig from "@/config/env";
|
||||
import { clear_login_state } from "@/services/loginService";
|
||||
|
||||
@@ -318,7 +318,7 @@ export class UserService {
|
||||
|
||||
if (response.code === 0) {
|
||||
const userData = response.data;
|
||||
|
||||
|
||||
return {
|
||||
id: userData.id || "",
|
||||
nickname: userData.nickname || "",
|
||||
@@ -347,8 +347,6 @@ export class UserService {
|
||||
last_location_province: userData.last_location_province || "",
|
||||
last_location_city: userData.last_location_city || "",
|
||||
};
|
||||
|
||||
|
||||
} else {
|
||||
throw new Error(response.message || "获取用户信息失败");
|
||||
}
|
||||
@@ -735,7 +733,7 @@ export const updateUserLocation = async (
|
||||
const response = await httpService.post("/user/update_location", {
|
||||
latitude,
|
||||
longitude,
|
||||
force
|
||||
force,
|
||||
});
|
||||
return response;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user