审批
This commit is contained in:
parent
6ba04b1b2c
commit
235b63636a
@ -43,6 +43,9 @@ class ApproveController extends BaseApiController
|
||||
{
|
||||
$param = $this->request->param();
|
||||
$detail = ApproveLogic::detail($param['id']);
|
||||
return $this->success('成功', $detail);
|
||||
if (!$detail) {
|
||||
$this->fail('数据不存在');
|
||||
}
|
||||
return $this->success('成功', $detail->toArray());
|
||||
}
|
||||
}
|
@ -54,6 +54,6 @@ class ApproveLogic extends BaseLogic
|
||||
|
||||
public static function detail($id)
|
||||
{
|
||||
return Approve::where(['id', $id])->find();
|
||||
return Approve::find($id);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user