From 4d62b053a0fde23931e152748536318c447909e8 Mon Sep 17 00:00:00 2001 From: lijianbin <513837235@.qq.com> Date: Tue, 9 Nov 2021 11:41:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client.go | 3 ++- common.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index 5bba0a0..b822123 100644 --- a/client.go +++ b/client.go @@ -72,7 +72,7 @@ func SendMsg(site_id, dbname, business_id, domainname, msg_type, order_sn, memo } // target_type:目标类型,商品或文章 target_id:目标ID -func SendNotcie(site_id, dbname, manager_id, target_type, target_id string, template_Data map[string]string, url ...string) (bool, error) { +func SendNotcie(site_id, dbname, domain, manager_id, target_type, target_id string, template_Data map[string]string, url ...string) (bool, error) { if dbname == "" || dbname == "" || manager_id == "" { return false, errors.New("参数错误") } @@ -87,6 +87,7 @@ func SendNotcie(site_id, dbname, manager_id, target_type, target_id string, temp arg := NoticeSend{} arg.SiteId = site_id arg.Dbname = dbname + arg.Domain = domain arg.ManagerId = manager_id arg.TargetType = target_type arg.TargetId = target_id diff --git a/common.go b/common.go index cf4b016..3f4adaa 100644 --- a/common.go +++ b/common.go @@ -24,6 +24,7 @@ type MsgSend struct { type NoticeSend struct { Req + Domain string ManagerId string TargetType string TargetId string