|
|
@@ -745,7 +745,7 @@ class ServiceWorkLogic extends BaseLogic
|
|
|
|
|
|
//工单如果存在费用情况,不允许取消
|
|
|
$paid_amount = RechargeOrder::where('work_id', $params['id'])->where('pay_status', 1)->value('paid_amount');
|
|
|
- if($paid_amount > 0 and ($serviceWorkInfo['third_type'] == 0 || $serviceWorkInfo['external_platform_id'] == 0)){
|
|
|
+ if($paid_amount > 0 and ($serviceWorkInfo['third_type'] == 0 && $serviceWorkInfo['external_platform_id'] == 0)){
|
|
|
// 4=已上门,5=服务中,6=待结算, 即工程师已上门服务过
|
|
|
throw new Exception('工单存在费用情况,不允许取消,请走退费流程');
|
|
|
}
|