|
|
|
@ -1208,10 +1208,9 @@ app.post('/api/user/update-location', async (req, res) => { |
|
|
|
updated_at: getBeijingTime() |
|
|
|
}; |
|
|
|
|
|
|
|
// 如果有地址信息,将地址存储到authorized_region字段,满足需求
|
|
|
|
// 如果有地址信息,将地址存储到authorized_region字段
|
|
|
|
if (address) { |
|
|
|
updateData.authorized_region = address; |
|
|
|
updateData.detailedaddress = address; // 同时保持detailedaddress字段也存储地址,确保兼容性
|
|
|
|
} else { |
|
|
|
// 如果没有地址信息,才存储经纬度
|
|
|
|
updateData.authorized_region = locationJson; |
|
|
|
|