[fix] studio server error

This commit is contained in:
Max 2023-04-07 15:38:47 +08:00
parent 2eb78f86df
commit 12552d5b69

View file

@ -212,7 +212,9 @@ func setRouter(router *gin.Engine) {
ctx, err := script.NewContext(fmt.Sprintf("%v", sid), nil)
if err != nil {
throw(c, 500, err.Error())
return
}
res, err := ctx.Call(fun.Method, fun.Args...)
if err != nil {