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