|
|
|
@ -120,12 +120,12 @@ class CustomerResourcesService extends BaseAdminService |
|
|
|
public function edit(int $id, array $data) |
|
|
|
{ |
|
|
|
$personnel = new Personnel(); |
|
|
|
// $data['consultant'] = $personnel->where(['sys_user_id' => $this->uid])->value("id"); |
|
|
|
// if(!$data['consultant']){ |
|
|
|
// return fail("操作失败"); |
|
|
|
// } |
|
|
|
$data['consultant'] = $personnel->where(['sys_user_id' => $this->uid])->value("id"); |
|
|
|
if(!$data['consultant']){ |
|
|
|
return fail("操作失败"); |
|
|
|
} |
|
|
|
|
|
|
|
$data['consultant'] = 1; |
|
|
|
// $data['consultant'] = 1; |
|
|
|
$res = $this->model->where([['id', '=', $id]])->findOrEmpty()->toArray(); |
|
|
|
|
|
|
|
|
|
|
|
|