diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index 40d942cc4..94d73f4a9 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -962,6 +962,10 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat Begin(db) defer Commit(db) + if params["keyword"] != nil { + fmt.Println(sql) + fmt.Println(sqlParams) + } if err = GetRows(db, &orders, sql, sqlParams...); err == nil { totalCount = GetLastTotalRowCount(db) } diff --git a/business/partner/purchase/jdshop/callback.go b/business/partner/purchase/jdshop/callback.go index 2666468fa..810aa72f6 100644 --- a/business/partner/purchase/jdshop/callback.go +++ b/business/partner/purchase/jdshop/callback.go @@ -41,6 +41,17 @@ func OnCallbackMsg(msg *jdshopapi.CallBackResult) (err error) { } } }) + case jcqapi.TopicOrderOut: + utils.CallFuncAsync(func() { + order := getRealOrderID(msg.OrderID) + if order != nil { + if order.ActualPayPrice == 0 { + if jxutils.StandardPrice2Int(utils.Str2Float64(msg.OrderPayment)) == 0 { + + } + } + } + }) default: return fmt.Errorf("暂不支持的topic类型!topic: %v", msgType) }