Browse Source

Merge branch 'yuhongzhe' of ssh://gitlab.frkj.cc:222/php/zhjwxt into yuhongzhe

wangzeyan
王泽彦 11 months ago
parent
commit
0e63dd05e6
  1. 10
      niucloud/app/service/admin/customer_resources/CustomerResourcesService.php

10
niucloud/app/service/admin/customer_resources/CustomerResourcesService.php

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

Loading…
Cancel
Save