From 8a72ed27aedea7f47f454d1e4c75bf70c87f82db Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 25 Apr 2024 16:06:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/task/svc/svc_tik_tok_csjp.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/task/svc/svc_tik_tok_csjp.go b/app/task/svc/svc_tik_tok_csjp.go index 461b49f..316e330 100644 --- a/app/task/svc/svc_tik_tok_csjp.go +++ b/app/task/svc/svc_tik_tok_csjp.go @@ -138,6 +138,7 @@ func OrdersTikTokGet(nextPositionIndex string, pageSize int, sTime, eTime int64, continue } orderType := 0 + if v["is_share"] == "1" { orderType = 1 } @@ -175,11 +176,11 @@ func OrdersTikTokGet(nextPositionIndex string, pageSize int, sTime, eTime int64, Img: v["product_img"], IsShare: orderType, Gid: v["product_id"], - Ext: utils.SerializeStr(order), } if utils.StrToInt(v["lm_js_time"]) > 0 { ord.PlatformSettleTime = utils.StrToInt(v["lm_js_time"]) } + one := db.GetGuideOrderByOne(ord.PvdOid, utils.IntToStr(ord.Uid), ord.Pvd) if one == nil { insertOne, err := db.ZhimengDb.InsertOne(ord) @@ -190,6 +191,9 @@ func OrdersTikTokGet(nextPositionIndex string, pageSize int, sTime, eTime int64, if one.PlatformSettleTime > 0 { ord.PlatformSettleTime = one.PlatformSettleTime } + if one.Status == "违规订单" { + one.Status = "违规订单" + } db.ZhimengDb.Where("id=?", one.Id).AllCols().Update(ord) } }