From 0ae55aa1ffc74cc8a74128ccc61c797c9a70aaab Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 31 May 2024 19:03:21 +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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/task/svc/svc_tik_tok_csjp.go b/app/task/svc/svc_tik_tok_csjp.go index 1d72041..f7946d5 100644 --- a/app/task/svc/svc_tik_tok_csjp.go +++ b/app/task/svc/svc_tik_tok_csjp.go @@ -190,6 +190,9 @@ func OrdersTikTokGet(nextPositionIndex string, pageSize int, sTime, eTime int64, insertOne, err := db.ZhimengDb.InsertOne(ord) fmt.Println(insertOne) fmt.Println(err) + if v["team_type"] == "novajo" { + ids = append(ids, utils.StrToInt64(ord.PvdOid)) + } } else { ord.SettleTime = one.SettleTime if one.PlatformSettleTime > 0 { @@ -200,9 +203,7 @@ func OrdersTikTokGet(nextPositionIndex string, pageSize int, sTime, eTime int64, } db.ZhimengDb.Where("id=?", one.Id).AllCols().Update(ord) } - if v["team_type"] == "novajo" { - ids = append(ids, utils.StrToInt64(ord.PvdOid)) - } + } if len(ids) > 0 { tiktokTeamNovajoId := offical.SysCfgByKeyStr("tikTok_team_novajo_id")