update
This commit is contained in:
@@ -142,6 +142,8 @@ func init() {
|
||||
for k, v := range s.GetMatch() {
|
||||
template = strings.Replace(template, fmt.Sprintf(`param(%d)`, k+1), fmt.Sprintf(`"%s"`, v), -1)
|
||||
}
|
||||
template = strings.Replace(template, "ImType()", fmt.Sprintf(`"%s"`, s.GetImType()), -1)
|
||||
template = strings.Replace(template, "GetChatID()", fmt.Sprint(s.GetChatID()), -1)
|
||||
vm := otto.New()
|
||||
vm.Set("set", set)
|
||||
vm.Set("get", get)
|
||||
|
||||
Reference in New Issue
Block a user