Commit 5e2bb0c3 by 孙龙

up

parent 6966cf56
...@@ -2,14 +2,13 @@ package cron_sendmsg ...@@ -2,14 +2,13 @@ package cron_sendmsg
import ( import (
"errors" "errors"
"fmt" cfg "github.com/ichunt2019/cfg/lib"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
"golang-asynctask/app/dao/crm/cron_sendmsg" "golang-asynctask/app/dao/crm/cron_sendmsg"
comfunc "golang-asynctask/util/lib"
"net/http" "net/http"
"net/url" "net/url"
"time" "time"
cfg "github.com/ichunt2019/cfg/lib"
comfunc "golang-asynctask/util/lib"
) )
func SendMsg() (err error){ func SendMsg() (err error){
...@@ -23,7 +22,7 @@ func SendMsg() (err error){ ...@@ -23,7 +22,7 @@ func SendMsg() (err error){
if err != nil{ if err != nil{
return err return err
} }
fmt.Println(res) //fmt.Println(res)
if(len(res) <= 0){ if(len(res) <= 0){
return return
......
...@@ -18,6 +18,5 @@ func main(){ ...@@ -18,6 +18,5 @@ func main(){
flag.StringVar(&logPath, "logdir", "./logs/", "日志文件存储目录") flag.StringVar(&logPath, "logdir", "./logs/", "日志文件存储目录")
flag.Parse() flag.Parse()
boot.Init(configPath,logPath) boot.Init(configPath,logPath)
cron_sendmsg.SendMsg() cron_sendmsg.SendMsg()
} }
...@@ -3,6 +3,8 @@ title = "TOML 例子" ...@@ -3,6 +3,8 @@ title = "TOML 例子"
viewpath = "/home/www/templates/" viewpath = "/home/www/templates/"
pushErpDomain = "http://crm.ichunt.net/api/pushComUserRelationToErp" pushErpDomain = "http://crm.ichunt.net/api/pushComUserRelationToErp"
crmSendMsgByconflictSale = "http://crm.ichunt.net/api/sendMsgByconflictSale"
sendMsgByChangeInvoiceCom = "http://crm.ichunt.net/api/sendMsgByChangeInvoiceCom"
apiKey = "crm a1b2c3d4e5f6g7h8i9jk" apiKey = "crm a1b2c3d4e5f6g7h8i9jk"
[rabbitmq_crm_comuser_fenfa] [rabbitmq_crm_comuser_fenfa]
...@@ -19,4 +21,12 @@ queue_name="crm_pushcomuser_toerp" ...@@ -19,4 +21,12 @@ queue_name="crm_pushcomuser_toerp"
routing_key="crm_pushcomuser_toerp" routing_key="crm_pushcomuser_toerp"
exchange="" exchange=""
type="direct" type="direct"
dns="amqp://WmsQue:EizM9I1TAxoO0tmzoOm@172.18.137.33:5672/"
[rabbitmq_crm_invoice_com_apply]
queue_name="crm_invoice_com_apply"
routing_key="crm_invoice_com_apply"
exchange=""
type="direct"
dns="amqp://WmsQue:EizM9I1TAxoO0tmzoOm@172.18.137.33:5672/" dns="amqp://WmsQue:EizM9I1TAxoO0tmzoOm@172.18.137.33:5672/"
\ No newline at end of file
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