|
@@ -71,6 +71,10 @@ func Sms(c *gin.Context) { |
|
|
"zone": "86", |
|
|
"zone": "86", |
|
|
"phone": args.Phone, |
|
|
"phone": args.Phone, |
|
|
} |
|
|
} |
|
|
|
|
|
templateCode := NewSysCfgDb.SysCfgGetWithDb("templateCode") |
|
|
|
|
|
if templateCode != "" { |
|
|
|
|
|
where["templateCode"] = templateCode |
|
|
|
|
|
} |
|
|
send, err := sms.SmsMobApiSend(where) |
|
|
send, err := sms.SmsMobApiSend(where) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
e.OutErr(c, 400, err.Error()) |
|
|
e.OutErr(c, 400, err.Error()) |
|
|