From fa22da556f94882bd7c17b56e4eec45ae7e38a5f Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 6 Jan 2025 10:24:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=B7=E5=A8=81=E7=AC=AC=E4=B8=89=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- thirdParty/haiwei/api.go | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/thirdParty/haiwei/api.go b/thirdParty/haiwei/api.go index 5e78115..c3f66c6 100644 --- a/thirdParty/haiwei/api.go +++ b/thirdParty/haiwei/api.go @@ -213,19 +213,15 @@ func AddOrder(eg *xorm.Engine, method string, order map[string]interface{}, prd order["product_detail"] = utils.AnyToString(order["delivery_brand_name"]) + "-" + utils.AnyToString(order["delivery_goods_name"]) } var ord = &model.LifeOrder{ - PvdOid: utils.AnyToString(order["order_no"]), - GoodsTitle: utils.AnyToString(order["product_detail"]), - Commission: utils.AnyToString(order["total_rebate"]), - Platform: method, - Uid: utils.StrToInt(uid), - Payment: utils.AnyToString(order["settle_price"]), - State: statusArr[utils.AnyToString(order["order_status"])], - CreateAt: utils.TimeParseStd(utils.AnyToString(order["order_time"])), - UpdateAt: time.Now(), - PlatformSettleAt: utils.TimeParseStd(utils.AnyToString(order["modify_time"])), - } - if order["modify_time"] == "" || order["modify_time"] == nil { - ord.PlatformSettleAt = time.Now() + PvdOid: utils.AnyToString(order["order_no"]), + GoodsTitle: utils.AnyToString(order["product_detail"]), + Commission: utils.AnyToString(order["total_rebate"]), + Platform: method, + Uid: utils.StrToInt(uid), + Payment: utils.AnyToString(order["settle_price"]), + State: statusArr[utils.AnyToString(order["order_status"])], + CreateAt: utils.TimeParseStd(utils.AnyToString(order["order_time"])), + UpdateAt: time.Now(), } NewLifeOrderDb := implement.NewLifeOrderDb(eg) one, _ := NewLifeOrderDb.GetLifeOrder(ord.PvdOid)