Browse Source

fix:修正短信的空格被替换为加号问题

adam 3 years ago
parent
commit
3fad78fa0d
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      notice/sms.go

+ 2
- 3
notice/sms.go View File

7
 	"fmt"
7
 	"fmt"
8
 	"io/ioutil"
8
 	"io/ioutil"
9
 	"net/http"
9
 	"net/http"
10
-	"net/url"
11
 )
10
 )
12
 
11
 
13
 // SendChineseSMS 发送国内手机验证码
12
 // SendChineseSMS 发送国内手机验证码
16
 	params["account"] = user
15
 	params["account"] = user
17
 	params["password"] = pass
16
 	params["password"] = pass
18
 	params["phone"] = mobile
17
 	params["phone"] = mobile
19
-	params["msg"] = url.QueryEscape(content)
18
+	params["msg"] = content
20
 	params["report"] = true
19
 	params["report"] = true
21
 
20
 
22
 	bytesData, err := json.Marshal(params)
21
 	bytesData, err := json.Marshal(params)
80
 	params["account"] = user
79
 	params["account"] = user
81
 	params["password"] = pass
80
 	params["password"] = pass
82
 	params["mobile"] = mobile
81
 	params["mobile"] = mobile
83
-	params["msg"] = url.QueryEscape(content)
82
+	params["msg"] = content
84
 	params["report"] = true
83
 	params["report"] = true
85
 
84
 
86
 	bytesData, err := json.Marshal(params)
85
 	bytesData, err := json.Marshal(params)