fix unit-test bug
This commit is contained in:
parent
1fc21beeee
commit
aeaedea580
1 changed files with 6 additions and 1 deletions
|
|
@ -18,13 +18,18 @@ func init() {
|
|||
|
||||
// processCreate 运行模型 MustCreate
|
||||
func processPing(process *gou.Process) interface{} {
|
||||
var input interface{}
|
||||
if process.NumOfArgs() > 0 {
|
||||
input = process.Args[0]
|
||||
}
|
||||
|
||||
res := map[string]interface{}{
|
||||
"code": 200,
|
||||
"server": "象传应用引擎",
|
||||
"version": share.VERSION,
|
||||
"domain": share.DOMAIN,
|
||||
"allows": config.Conf.Service.Allow,
|
||||
"args": process.Args[0],
|
||||
"args": input,
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue