|
|
@@ -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)
|