|
@@ -15,7 +15,7 @@ import (
|
|
|
*@Param mobile 手机号
|
|
|
*@Param params 消息模板中变量
|
|
|
*/
|
|
|
-func SendSms(address, id, phones string, params ...string) {
|
|
|
+func SendSms(ip, address, id, phones string, params ...string) {
|
|
|
go func() {
|
|
|
defer Catch()
|
|
|
var repl string
|
|
@@ -29,6 +29,7 @@ func SendSms(address, id, phones string, params ...string) {
|
|
|
"id": id,
|
|
|
"phones": phones,
|
|
|
"params": params,
|
|
|
+ "ip": ip,
|
|
|
})
|
|
|
err = client.Call("Sms.Execute", b, &repl)
|
|
|
if err != nil {
|