|
@@ -27,7 +27,6 @@ class ServiceApplyController extends AuthController
|
|
]);
|
|
]);
|
|
$user = $this->user;
|
|
$user = $this->user;
|
|
$doctor_id = $user['id'];
|
|
$doctor_id = $user['id'];
|
|
-
|
|
|
|
$where['docter_id'] = $doctor_id;
|
|
$where['docter_id'] = $doctor_id;
|
|
$where['service_type'] = $req['service_type'];
|
|
$where['service_type'] = $req['service_type'];
|
|
$data = ServiceApply::where($where)->first();
|
|
$data = ServiceApply::where($where)->first();
|
|
@@ -39,7 +38,12 @@ class ServiceApplyController extends AuthController
|
|
]);
|
|
]);
|
|
return out();
|
|
return out();
|
|
}else{
|
|
}else{
|
|
- return out('','','您已提交');
|
|
|
|
|
|
+ if ($data['status']!=2){
|
|
|
|
+ ServiceApply::where($where)->update(['status'=>1]);
|
|
|
|
+ return out();
|
|
|
|
+ }else{
|
|
|
|
+ return out('','','您已提交');
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|