|
|
@@ -7,8 +7,10 @@ import ( |
|
|
|
svc2 "applet/app/svc/friend_circle" |
|
|
|
"applet/app/utils/cache" |
|
|
|
"code.fnuoos.com/EggPlanet/egg_system_rules.git/md" |
|
|
|
md2 "code.fnuoos.com/EggPlanet/egg_system_rules.git/rule/egg_energy/md" |
|
|
|
svc3 "code.fnuoos.com/EggPlanet/egg_system_rules.git/svc" |
|
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_es.git/es" |
|
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/rabbit" |
|
|
|
"context" |
|
|
|
"encoding/json" |
|
|
|
"fmt" |
|
|
@@ -164,6 +166,15 @@ func Comment(c *gin.Context) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 推到 es 更新评论次数 |
|
|
|
ch, err := rabbit.Cfg.Pool.GetChannel() |
|
|
|
if err != nil { |
|
|
|
return |
|
|
|
} |
|
|
|
defer ch.Release() |
|
|
|
|
|
|
|
ch.Publish(md2.EggAppExchange, md2.EggCommentData{Uid: user.Id}, md2.EggRoutKeyForComment) |
|
|
|
|
|
|
|
e.OutSuc(c, "success", nil) |
|
|
|
} |
|
|
|
|
|
|
|