测试订单

This commit is contained in:
苏尹岚
2020-09-09 08:51:36 +08:00
parent d40a281b2e
commit 84c84b13b2
2 changed files with 15 additions and 0 deletions

View File

@@ -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)
}

View File

@@ -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)
}