Commit 6b1436d0 by mushishixian

调试代码

parent 906c78a1
Showing with 5 additions and 3 deletions
......@@ -27,6 +27,7 @@ func init() {
func (t *RecvPro) Consumer(dataByte []byte) (err error) {
message := string(dataByte)
fmt.Println(message)
supplierCode := gjson.Get(message, "PTID").String()
erpSupplierCode := gjson.Get(message, "supplierNumber").String()
erpSupplierName := gjson.Get(message, "supplierName").String()
......
......@@ -5,17 +5,18 @@ import (
"go_supplier_sever/app/queue"
"go_supplier_sever/boot"
)
var (
configPath string
logPath string
)
func main(){
func main() {
flag.StringVar(&configPath, "config", "./config/dev/", "配置文件")
flag.StringVar(&logPath, "logdir", "./logs/", "日志文件存储目录")
flag.Parse()
boot.Init(configPath,logPath)
boot.Init(configPath, logPath)
queue.Run()
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment