|
@@ -203,7 +203,7 @@ class Platform extends Base{
|
|
|
public function info(){
|
|
|
$id = $this->request->param('id','', 'int');
|
|
|
if(empty($id)) return error("参数错误");
|
|
|
- $info = $this->model->with(["platChannel"=>"channel"])->findOrEmpty($id);
|
|
|
+ $info = $this->model->with(["platChannel"=>["channel"]])->findOrEmpty($id);
|
|
|
if($info->isEmpty()) return error("平台不存在");
|
|
|
if($info->is_del==1) return error("平台已删除");
|
|
|
return success("获取成功",$info);
|