lining hace 6 años
padre
commit
c580127c42

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

@@ -161,7 +161,7 @@ func (s *RtxService) HandleSendMsg(username string, tomobile string, message str
 	json, err := json.Marshal(msg)
 	params := string(json)
 	//msgStr, _ := simplifiedchinese.GBK.NewEncoder().String(message)
-	url := "http://apigw.dgyt.com/devopsapi/sendmsg"
+	url := utils.Cfg.MustValue("MsgUrl", "msgUrl")
 	//req, err := http.NewRequest("post", "http://api.uidp.dgyt.petrochina/SMS/API/sendSMS", strings.NewReader(params))
 	req, err := http.NewRequest("POST", url, strings.NewReader(params))
 	//resp, err := http.Get(url)

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

@@ -71,4 +71,7 @@ AposeUrl=http://47.92.212.59:8081/acti-api/api/apose
 BaseUrl=http://47.92.212.59:8081/acti-api/api/acti
 
 [bank]
-callbackHost=http://localhost:10091/api
+callbackHost=http://localhost:10091/api
+
+[MsgUrl]
+msgUrl=http://apigw.dgyt.petrochina/devopsapi/sendmsg