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