From 84c84b13b2009ada649f533865185bf75f401973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 9 Sep 2020 08:51:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/dao/dao_order.go | 4 ++++ business/partner/purchase/jdshop/callback.go | 11 +++++++++++ 2 files changed, 15 insertions(+) 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) }