|
|
@ -71,7 +71,8 @@ func SendMsg(site_id, dbname, business_id, domainname, msg_type, order_sn, memo |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
func SendNotcie(site_id, dbname, manager_id, thumb string, template_Data map[string]string, url ...string) (bool, error) { |
|
|
|
// 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) { |
|
|
|
if dbname == "" || dbname == "" || manager_id == "" { |
|
|
|
return false, errors.New("参数错误") |
|
|
|
} |
|
|
@ -87,7 +88,8 @@ func SendNotcie(site_id, dbname, manager_id, thumb string, template_Data map[str |
|
|
|
arg.SiteId = site_id |
|
|
|
arg.Dbname = dbname |
|
|
|
arg.ManagerId = manager_id |
|
|
|
arg.Thumb = thumb |
|
|
|
arg.TargetType = target_type |
|
|
|
arg.TargetId = target_id |
|
|
|
arg.TemplateData = template_Data |
|
|
|
|
|
|
|
data_json, err := json.Marshal(arg) |
|
|
|