From e67bfeeea6dc0cc0a5111a6bf1ef669524e58165 Mon Sep 17 00:00:00 2001 From: "97694732@qq.com" Date: Sat, 6 Jun 2026 16:58:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:pushToShop=E9=9D=9E200=E6=98=BE=E7=A4=BAmsg?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/upload/upload.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/upload/upload.vue b/pages/upload/upload.vue index c8aa294..091b105 100644 --- a/pages/upload/upload.vue +++ b/pages/upload/upload.vue @@ -2332,7 +2332,15 @@ export default { } else { console.warn('【syncBook】pushToShop返回缺少warehouse_id/product_id,跳过releaseGoodsAuto') } + } else if (pushRespData && pushRespData.msg) { + // code 非 200,显示错误信息 + uni.showToast({ title: pushRespData.msg, icon: 'none', duration: 3000 }) } + } else { + // HTTP 非 200 + var errMsg = 'pushToShop请求失败: HTTP ' + pushRes.statusCode + console.error('【syncBook】' + errMsg) + uni.showToast({ title: errMsg, icon: 'none', duration: 3000 }) } } catch (ePush) { console.warn('【syncBook】pushToShop失败:', ePush)