Salon美甲师注册申请关联微信账号
自动发布开发环境 Nacos 配置 / publish (push) Successful in 26s

This commit is contained in:
2026-10-30 03:46:24 +08:00
parent 5a787a93f3
commit 7b40ee1650
27 changed files with 733 additions and 91 deletions
+9 -3
View File
@@ -23,9 +23,14 @@ function preserveResponseId(rawText, payload) {
if (!payload || typeof payload !== 'object' || !payload.data || typeof payload.data !== 'object') {
return payload
}
const match = String(rawText || '').match(/"id"\s*:\s*"?(\d+)"?/)
if (match && match[1]) {
payload.data.id = match[1]
const raw = String(rawText || '')
const idMatch = raw.match(/"id"\s*:\s*"?(\d+)"?/)
if (idMatch && idMatch[1]) {
payload.data.id = idMatch[1]
}
const fileIdMatch = raw.match(/"fileId"\s*:\s*"?(\d+)"?/)
if (fileIdMatch && fileIdMatch[1]) {
payload.data.fileId = fileIdMatch[1]
}
return payload
}
@@ -110,6 +115,7 @@ function uploadProfileImage(filePath) {
}
module.exports = {
uploadFile,
chooseImageFilePath,
uploadObjectFile,
uploadProfileImage