Browse Source

更新

master
huangjiajun 8 months ago
parent
commit
8a72ed27ae
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      app/task/svc/svc_tik_tok_csjp.go

+ 5
- 1
app/task/svc/svc_tik_tok_csjp.go View File

@@ -138,6 +138,7 @@ func OrdersTikTokGet(nextPositionIndex string, pageSize int, sTime, eTime int64,
continue continue
} }
orderType := 0 orderType := 0

if v["is_share"] == "1" { if v["is_share"] == "1" {
orderType = 1 orderType = 1
} }
@@ -175,11 +176,11 @@ func OrdersTikTokGet(nextPositionIndex string, pageSize int, sTime, eTime int64,
Img: v["product_img"], Img: v["product_img"],
IsShare: orderType, IsShare: orderType,
Gid: v["product_id"], Gid: v["product_id"],
Ext: utils.SerializeStr(order),
} }
if utils.StrToInt(v["lm_js_time"]) > 0 { if utils.StrToInt(v["lm_js_time"]) > 0 {
ord.PlatformSettleTime = utils.StrToInt(v["lm_js_time"]) ord.PlatformSettleTime = utils.StrToInt(v["lm_js_time"])
} }

one := db.GetGuideOrderByOne(ord.PvdOid, utils.IntToStr(ord.Uid), ord.Pvd) one := db.GetGuideOrderByOne(ord.PvdOid, utils.IntToStr(ord.Uid), ord.Pvd)
if one == nil { if one == nil {
insertOne, err := db.ZhimengDb.InsertOne(ord) insertOne, err := db.ZhimengDb.InsertOne(ord)
@@ -190,6 +191,9 @@ func OrdersTikTokGet(nextPositionIndex string, pageSize int, sTime, eTime int64,
if one.PlatformSettleTime > 0 { if one.PlatformSettleTime > 0 {
ord.PlatformSettleTime = one.PlatformSettleTime ord.PlatformSettleTime = one.PlatformSettleTime
} }
if one.Status == "违规订单" {
one.Status = "违规订单"
}
db.ZhimengDb.Where("id=?", one.Id).AllCols().Update(ord) db.ZhimengDb.Where("id=?", one.Id).AllCols().Update(ord)
} }
} }


Loading…
Cancel
Save