From b8cea03c34d4d99d7570cc689a0e0465bd063bb6 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sun, 29 Sep 2024 16:27:41 +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 e7a4448..fdbb6a1 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())