Ver código fonte

更新

master
huangjiajun 8 meses atrás
pai
commit
8a72ed27ae
1 arquivos alterados com 5 adições e 1 exclusões
  1. +5
    -1
      app/task/svc/svc_tik_tok_csjp.go

+ 5
- 1
app/task/svc/svc_tik_tok_csjp.go Ver arquivo

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


Carregando…
Cancelar
Salvar