orz 世界上没有艺术,只有艺术家而已
Exception[5004]
路由错误,未正确设置路由
Node
Request
Trace
Collect
request
query
cookie
uuid
orz\kernel\exception::system
/data/www/smxfx/orz/kernel/runner/http_runner.class.php line : 265
251
{
252
$class_name.="\\".$actor[$i]."_".$type;
253
}
254
else
255
{
256
$class_name.="\\".$actor[$i];
257
}
258
}
259
260
if(!class_exists($class_name))
261
{
262
throwexception::system(5004,[
263
"class"=>$class_name,
264
"query"=>$this->bag->query()
265
]);
266
267
}
268
269
$this->bag->set("runner",[
270
"action_class"=>$class_name
271
]);
272
273
$this->bag->set("actor",implode("/",$actor));
274
$this->bag->set("_actor",implode(".",$actor));
275
276
$this->bag->set("runner_class",$class_name);
277
278
//运行自定义中间件
279
//应用设置的中间件
280
$app_middles=$this->get_module_middles($app_path,$actor);
orz\kernel\runner\http_runner->go_action
/data/www/smxfx/orz/kernel/runner/http_runner.class.php line : 349
335
$route_result=$route->run($this->bag->query());
336
337
if($route_result===null)
338
{
339
throwexception::system(5004,["query"=>$this->bag->query()]);
340
}
341
342
//返回对象
343
switch($route_result['type'])
344
{
345
case"mca":
346
//记录存入参数
347
$this->bag->request()->sets($route_result['args']);
348
$actor=$route_result['mca'];
349
return$this->go_action($actor,"view");
350
break;
351
case"func":
352
if(!is_callable($route_result['func']))
353
{
354
throwexception::system(5004,["query"=>$this->bag->query()]);
355
}
356
$this->bag->request()->sets($route_result['args']);
357
returncall_user_func_array($route_result['func'],[$this->bag]);
358
break;
359
case"action":
360
$action=new$route_result['action']();
361
$this->bag->request()->sets($route_result['args']);
362
returncall_user_func_array($action,[$this->bag]);
363
break;
364
}
orz\kernel\runner\http_runner->go_route
/data/www/smxfx/orz/kernel/runner/http_runner.class.php line : 87
73
/**
74
*@throwsexception
75
*/
76
protectedfunctionwork()
77
{
78
//初始化bag
79
$this->bag=bag::create_from_global();
80
//初始化路由
81
$this->init_route();
82
//运行系统级别中间件
83
$result=$this->run_middles(config("http.middle"));
84
if(!$result)
85
{
86
//路由
87
$result=$this->go_route();
88
}
89
//兼容返回方式
90
$result=$this->turn($result);
91
//回调结果
92
static::s_run_call(static::event_on_result,[$this->bag,$result,$this->loaded_middles]);
93
//输出
94
$result->end();
95
}
96
97
/**
98
*兼容不同类型返回结果
99
*@param$result
100
*@returnmixed|response
101
*@throwsexception
102
*/
orz\kernel\runner\http_runner->work
/data/www/smxfx/orz/kernel/prototype/runner.class.php line : 36
22
{
23
$this->init();
24
}
25
26
protectedfunctioninit()
27
{
28
sys::s_register_on_error(function($error){
29
$this->on_error($error);
30
});
31
}
32
33
publicfunctionrun()
34
{
35
self::s_run_call(self::event_on_start,[$this]);
36
$this->work();
37
self::s_run_call(self::event_on_end,[$this]);
38
}
39
40
staticfunctions_register_on_start($func)
41
{
42
self::s_register_call(self::event_on_start,$func);
43
}
44
45
staticfunctions_register_on_end($func)
46
{
47
self::s_register_call(self::event_on_end,$func);
48
}
49
50
abstractprotectedfunctionon_error($error);
51
orz\kernel\prototype\runner->run
/data/www/smxfx/orz/kernel/sys.class.php line : 365
351
staticfunction__callStatic($name,$arguments)
352
{
353
returnself::s_get_property($name);
354
}
355
356
357
/**
358
*@varhttp_runner
359
*/
360
staticpublic$http_runner;
361
362
publicstaticfunctionhttp()
363
{
364
self::$http_runner=newhttp_runner();
365
self::$http_runner->run();
366
}
367
368
/**
369
*@varclient_runner
370
*/
371
staticpublic$client_runner;
372
373
publicstaticfunctionclient()
374
{
375
self::$client_runner=newclient_runner();
376
self::$client_runner->run();
377
}
378
379
380
}
orz\kernel\sys::http
/data/www/smxfx/index.php line : 4
1
<?php
2
includedirname(__FILE__)."/orz/inc.php";
3
useorz\kernel\sys;
4
sys::http();