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")