控制器里面的方法怎么互相调用

浏览:4426 发布日期:2016/11/25 分类:求助交流
public function getHome($key)
{
checkKey($key);
$result = Db::name('home')
->select();
return json(['code'=>200,'result'=>$result,'msg'=>'请求成功']);
}



private function checkKey($key){

$pass = Db::name('authority')
->where('key', $key)
->select();
if(empty($pass))
return json(['msg'=>'请求失败']);

}
/*********/ 调用不了,谁能说下啊!!!谢谢了!!!!!
最佳答案
评论( 相关
后面还有条评论,点击查看>>