1
This commit is contained in:
@@ -47,6 +47,7 @@ func (c *PurchaseHandler) OnAfsOrderMsg(msgId, orderId string, msg interface{})
|
||||
|
||||
// todo 对于退款与部分退款,order.go与这个文件中对于状态的处理不一致
|
||||
func (c *PurchaseHandler) onAfsOrderMsg(msgId string, msg interface{}) (retVal *tiktokShop.CallbackResponse) {
|
||||
globals.SugarLogger.Debugf("==========msg := %s", msg)
|
||||
var err error
|
||||
orderStatus, vendorOrgCode := c.callbackAfsMsg2Status(msgId, msg)
|
||||
if orderStatus == nil {
|
||||
@@ -118,7 +119,7 @@ func (c *PurchaseHandler) onAfsOrderMsg(msgId string, msg interface{}) (retVal *
|
||||
if msgId == tiktokShop.CallbackUpdateRefundOrderMsgTagId {
|
||||
err = utils.CallFuncLogError(func() error {
|
||||
if _, err = dao.DeleteEntity(dao.GetDB(), afsOrder, "VendorOrderID", "VendorID"); err != nil {
|
||||
_, err = dao.DeleteEntity(dao.GetDB(), afsOrder.Skus[0], "VendorOrderID")
|
||||
_, err = dao.ExecuteSQL(dao.GetDB(), `DELETE FROM order_sku_financial WHERE vendor_order_id = ?`, []interface{}{afsOrder.VendorOrderID})
|
||||
if err != nil {
|
||||
globals.SugarLogger.Debugf("卖家修改售后单异常删除商品列表异常 := %s", err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user