2
3
Quellcode durchsuchen

sendmsg url配置

yuedefeng vor 5 Jahren
Ursprung
Commit
a7272cc15d

+ 4 - 1
src/dashoo.cn/backend/api/business/oilrtx/RtxService.go

@@ -168,7 +168,10 @@ func (s *RtxService) HandleSendMsg(username string, tomobile string, message str
 	//resp, err := http.Get(url)
 	req.Header.Add("Content-Type", "application/json")
 	//req.Header.Add("X-Token", "/LT6VRmkY8mpGHJzWMKxzMQhjbkXwAHsk0zJkRfAPtjC0Wsecn1539xiULbJU32D59Kh0jTuUD0=")
-
+	log.Println("sendmsgurl= ", url)
+	log.Println("UserName= ", username)
+	log.Println("ToMobile= ", tomobile)
+	log.Println("Msg= ", message)
 	resp, err := client.Do(req)
 	if err != nil {
 		log.Println("err= ", err)

+ 1 - 1
src/dashoo.cn/backend/api/conf/app.conf

@@ -76,7 +76,7 @@ BaseUrl=http://localhost:8081/api/acti
 callbackHost=http://localhost:10091/api
 
 [MsgUrl]
-msgUrl=http://apigw.dgyt.petrochina/devopsapi/sendmsg
+msgUrl=http://api.dgyt.petrochina/jcfw/duanxin/v1.0/sendmsg
 
 [PtrUrl]
 ptrUrl=http://api.dgyt.petrochina/jcfw/ptr/v1.0/ptr