|
|
@@ -4,8 +4,10 @@ import ( |
|
|
|
"applet/app/e" |
|
|
|
"applet/app/lib/aes" |
|
|
|
"applet/app/lib/aes/md" |
|
|
|
md2 "applet/app/md" |
|
|
|
"applet/app/svc" |
|
|
|
"applet/app/utils" |
|
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/rabbit" |
|
|
|
"encoding/json" |
|
|
|
"github.com/gin-gonic/gin" |
|
|
|
"io/ioutil" |
|
|
@@ -43,6 +45,17 @@ func Demo(c *gin.Context) { |
|
|
|
}, nil) |
|
|
|
return |
|
|
|
} |
|
|
|
func Demo1(c *gin.Context) { |
|
|
|
ch, err := rabbit.Cfg.Pool.GetChannel() |
|
|
|
if err == nil { |
|
|
|
defer ch.Release() |
|
|
|
} |
|
|
|
arg := md2.AdvertisingWatch{Id: "3"} |
|
|
|
err = ch.PublishV2(md2.EggAdvertisingQueueExchange, arg, md2.EggAdvertisingSmash) |
|
|
|
if err != nil { |
|
|
|
ch.PublishV2(md2.EggAdvertisingQueueExchange, arg, md2.EggAdvertisingSmash) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
func TestCreateSign(c *gin.Context) { |
|
|
|
var args interface{} |
|
|
|