以前用tp的時(shí)候在控制器里寫一個(gè)空方法,如下:
這樣以后就可以直接在service里面寫功能函數(shù),控制器中同樣能調(diào)用到.
/**
* 空方法處理
*/
public function _empty(){
$actionName = $this->request->action();
if ($this->baseDataService->$actionName()==false){
return $this->apiReturn(-1, $this->baseDataService->getError());
}
return $this->apiReturn();
}
請(qǐng)問在webman中怎么實(shí)現(xiàn)這個(gè)呢?謝謝大佬