|
|
@@ -118,10 +118,6 @@ class MasterWorkerLogic extends BaseLogic
|
|
|
if ($user->isEmpty()) {
|
|
|
throw new \Exception('用户不存在');
|
|
|
}
|
|
|
- //长期合作工程师不允许停单
|
|
|
- if ($user->type == 2) {
|
|
|
- throw new Exception('您当前无权限操作停单');
|
|
|
- }
|
|
|
if($user->work_status == 1 ){
|
|
|
throw new Exception('请等待长期停单审核');
|
|
|
}
|
|
|
@@ -185,6 +181,10 @@ class MasterWorkerLogic extends BaseLogic
|
|
|
];
|
|
|
if($params['field'] == 'accept_order_status'){
|
|
|
$masterWorker = MasterWorker::where(['id'=>$userId])->findOrEmpty();
|
|
|
+ //长期合作工程师不允许修改接单状态
|
|
|
+ if ($masterWorker['type'] == 2) {
|
|
|
+ throw new Exception('您当前无权限操作接单状态');
|
|
|
+ }
|
|
|
if($masterWorker['work_status'] != 0 || $masterWorker['is_disable'] != 0){
|
|
|
throw new Exception('该账号已禁用或已长期停单');
|
|
|
}
|