feat: 重构顺运宝规格主链路 (#88)
This commit is contained in:
@@ -75,8 +75,11 @@ func AssociateSybPdd(db *sql.DB, sybID, rawURL string, confirmReplace bool) (str
|
||||
if context == nil {
|
||||
return "", fmt.Errorf("顺运宝明细不存在")
|
||||
}
|
||||
if context.Order.ShopeeSKUID == "" {
|
||||
return "", fmt.Errorf("请先确认蝦皮规格")
|
||||
if context.Order.ShopeeGoodsID == "" {
|
||||
return "", fmt.Errorf("顺运宝未提供蝦皮商品 ID")
|
||||
}
|
||||
if context.Order.SpecKey == "" {
|
||||
return "", fmt.Errorf("顺运宝未提供规格,不能进入采购流程")
|
||||
}
|
||||
return AssociateShopeePdd(db, context.Order.ShopeeGoodsID, rawURL, confirmReplace)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user