From 8fc4d601c32f50549af867b027bb5adf813cca1a Mon Sep 17 00:00:00 2001 From: xcbyy <2578898740@qq.com> Date: Wed, 14 Oct 2026 11:07:56 +0800 Subject: [PATCH] fix(api): export updateCompanionProfile for expert workspace and hall --- pwuniapp/common/api.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pwuniapp/common/api.js b/pwuniapp/common/api.js index 1d76ce7..2c6c1b2 100644 --- a/pwuniapp/common/api.js +++ b/pwuniapp/common/api.js @@ -1089,3 +1089,17 @@ export async function getMyReports(userId) { } } +/** + * 更新大神资料与接单状态 (如 status: '接单中' | '休息中') + */ +export async function updateCompanionProfile(expertId = 101, profileData = {}) { + try { + const res = await http.put(`/companions/${expertId}/profile`, profileData); + return res; + } catch (err) { + console.warn('[API] 更新大神资料/接单状态异常:', err.message); + throw err; + } +} + +