update
This commit is contained in:
parent
7cf63a4bfb
commit
4acc78cd41
@ -40,6 +40,7 @@ func addServer(info EvtInfo, name string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func addFacebookPage(info EvtInfo, fbid, tmpl 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)
|
ch, err := dsmodel.GetChannelByID(info.Channel)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ""
|
return ""
|
||||||
|
@ -156,6 +156,8 @@ func selectAction(info EvtInfo, cmdKey, cmdValue, payload string) string {
|
|||||||
case "ds_addfacebook":
|
case "ds_addfacebook":
|
||||||
strs := strings.Split(payload, " ")
|
strs := strings.Split(payload, " ")
|
||||||
return addFacebookPage(info, strs[0], strings.Join(strs[1:], " "))
|
return addFacebookPage(info, strs[0], strings.Join(strs[1:], " "))
|
||||||
|
case "ds_delfacebook":
|
||||||
|
return delFacebookPage(info, payload)
|
||||||
}
|
}
|
||||||
|
|
||||||
return ""
|
return ""
|
||||||
|
Loading…
Reference in New Issue
Block a user