This commit is contained in:
Jay 2019-08-25 11:47:34 +08:00
parent 7cf63a4bfb
commit 4acc78cd41
2 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,7 @@ func addServer(info EvtInfo, name string) string {
}
func addFacebookPage(info EvtInfo, fbid, tmpl string) string {
log.Printf("add facebook ::: id : %s ::: tmpl : %s \n", fbid, tmpl)
ch, err := dsmodel.GetChannelByID(info.Channel)
if err != nil {
return ""

View File

@ -156,6 +156,8 @@ func selectAction(info EvtInfo, cmdKey, cmdValue, payload string) string {
case "ds_addfacebook":
strs := strings.Split(payload, " ")
return addFacebookPage(info, strs[0], strings.Join(strs[1:], " "))
case "ds_delfacebook":
return delFacebookPage(info, payload)
}
return ""