fix:pushToShop非200显示msg错误信息

This commit is contained in:
97694732@qq.com 2026-06-06 16:58:00 +08:00
parent cf201cf560
commit e67bfeeea6

View File

@ -2332,7 +2332,15 @@ export default {
} else { } else {
console.warn('【syncBook】pushToShop返回缺少warehouse_id/product_id,跳过releaseGoodsAuto') 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) { } catch (ePush) {
console.warn('【syncBook】pushToShop失败:', ePush) console.warn('【syncBook】pushToShop失败:', ePush)