Browse Source

抖音团长商品

three
huangjiajun 1 year ago
parent
commit
210c0feb68
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      consume/zhios_tikTok_goods_update.go

+ 2
- 0
consume/zhios_tikTok_goods_update.go View File

@@ -4,6 +4,7 @@ import (
"applet/app/db" "applet/app/db"
"applet/app/db/model" "applet/app/db/model"
"applet/app/utils" "applet/app/utils"
"applet/app/utils/cache"
"applet/app/utils/logx" "applet/app/utils/logx"
"applet/consume/md" "applet/consume/md"
"code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/rabbit" "code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/rabbit"
@@ -99,6 +100,7 @@ func handleZhiosTikTokGoodsUpdate(msg []byte) error {
var v md.TikTokData var v md.TikTokData
json.Unmarshal([]byte(canalMsg.Data), &v) json.Unmarshal([]byte(canalMsg.Data), &v)
var tmp model.TikTokTeamGoods var tmp model.TikTokTeamGoods
cache.HSet("tik_"+canalMsg.Mid, canalMsg.Cid+"_"+v.GoodsID, string(msg))
get, _ := eg.Where("gid=? and activity_id=?", v.GoodsID, canalMsg.Cid).Get(&tmp) get, _ := eg.Where("gid=? and activity_id=?", v.GoodsID, canalMsg.Cid).Get(&tmp)
if get { if get {
//if tmp.IsDown == 1 { //if tmp.IsDown == 1 {


Loading…
Cancel
Save