From da550d939287657459d06edf33d6735b3316186d Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sun, 29 Sep 2024 16:23:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/hdl/hdl_sms.go | 4 ++++ 1 file changed, 4 insertions(+) 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())