diff --git a/app/hdl/hdl_sms.go b/app/hdl/hdl_sms.go index 9117c0b..222ed92 100644 --- a/app/hdl/hdl_sms.go +++ b/app/hdl/hdl_sms.go @@ -71,6 +71,10 @@ func Sms(c *gin.Context) { "zone": "86", "phone": args.Phone, } + templateCode := NewSysCfgDb.SysCfgGetWithDb("templateCode") + if templateCode != "" { + where["templateCode"] = templateCode + } send, err := sms.SmsMobApiSend(where) if err != nil { e.OutErr(c, 400, err.Error())