diff --git a/client.go b/client.go index b822123..deb8260 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, domain, manager_id, target_type, target_id string, template_Data map[string]string, url ...string) (bool, error) { +func SendNotcie(site_id, dbname, domain, user_id, 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("参数错误") } @@ -88,6 +88,7 @@ func SendNotcie(site_id, dbname, domain, manager_id, target_type, target_id stri arg.SiteId = site_id arg.Dbname = dbname arg.Domain = domain + arg.UserId = user_id arg.ManagerId = manager_id arg.TargetType = target_type arg.TargetId = target_id diff --git a/common.go b/common.go index 3f4adaa..2837e90 100644 --- a/common.go +++ b/common.go @@ -25,6 +25,7 @@ type MsgSend struct { type NoticeSend struct { Req Domain string + UserId string ManagerId string TargetType string TargetId string