whitefang 1 år sedan
förälder
incheckning
cac781d478
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      app/common/command/QueryRefund.php

+ 2 - 1
app/common/command/QueryRefund.php

@@ -195,8 +195,9 @@ class QueryRefund extends Command
         //更新工单退款状态以及处理师傅金额和物业金额
         $order = RechargeOrder::where('id',$order_id)->findOrEmpty();
         $work = ServiceWork::where('id',$order->work_id)->findOrEmpty();
+        Log::write($work->toArray());
         if(!$work->isEmpty()){
-            if(($work->work_pay_status == '1' || $work->work_pay_status == '2') and $work->service_status != '5'){
+            if(($work->work_pay_status == '1' || $work->work_pay_status == '2') and $work->service_status != '5' and $work->work_status != '9'){
                 //师傅余额变动
                 $change_amount = MasterWorkerAccountLog::where(['work_sn'=>$work->work_sn,'action'=>1])->value('change_amount');