update
This commit is contained in:
+5
-1
@@ -196,7 +196,11 @@ func init123() {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
var handler = func(s Sender) interface{} {
|
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)
|
template = strings.Replace(template, "ImType()", fmt.Sprintf(`"%s"`, s.GetImType()), -1)
|
||||||
param := func(call otto.Value) otto.Value {
|
param := func(call otto.Value) otto.Value {
|
||||||
i, _ := call.ToInteger()
|
i, _ := call.ToInteger()
|
||||||
|
|||||||
Reference in New Issue
Block a user