get('/router','/test'); /* * eg path : /closure/index.html ; /closure/ ; /closure */ $routeCollector->get('/closure',function (Request $request,Response $response){ $response->write('this is closure router'); //不再进入控制器解析 return false; }); /*商品上下架状态接口*/ $routeCollector->get('/ProductService','/skuState'); } }