+ xiang 前缀
This commit is contained in:
parent
96d37847b5
commit
ee1872bdea
1 changed files with 3 additions and 3 deletions
6
load.go
6
load.go
|
|
@ -47,13 +47,13 @@ func LoadEngine(from string) {
|
||||||
for _, script := range scripts {
|
for _, script := range scripts {
|
||||||
switch script.Type {
|
switch script.Type {
|
||||||
case "models":
|
case "models":
|
||||||
gou.LoadModel(string(script.Content), script.Name)
|
gou.LoadModel(string(script.Content), "xiang."+script.Name)
|
||||||
break
|
break
|
||||||
case "flows":
|
case "flows":
|
||||||
gou.LoadFlow(string(script.Content), script.Name)
|
gou.LoadFlow(string(script.Content), "xiang."+script.Name)
|
||||||
break
|
break
|
||||||
case "api":
|
case "api":
|
||||||
gou.LoadAPI(string(script.Content), script.Name)
|
gou.LoadAPI(string(script.Content), "xiang."+script.Name)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue