This commit is contained in:
cdle
2021-10-30 19:15:14 +08:00
parent 05898d5ebc
commit 77380471e4
+5 -1
View File
@@ -196,7 +196,11 @@ func init123() {
continue
}
var handler = func(s Sender) interface{} {
template := data
data, err := os.ReadFile(jr)
if err != nil {
return nil
}
template := string(data)
template = strings.Replace(template, "ImType()", fmt.Sprintf(`"%s"`, s.GetImType()), -1)
param := func(call otto.Value) otto.Value {
i, _ := call.ToInteger()