Browse Source

up - 独立工单支付接口

liugc 8 months ago
parent
commit
03c4eeff08
1 changed files with 3 additions and 4 deletions
  1. 3 4
      app/adminapi/logic/works/ServiceWorkLogic.php

+ 3 - 4
app/adminapi/logic/works/ServiceWorkLogic.php

@@ -1535,12 +1535,12 @@ class ServiceWorkLogic extends BaseLogic
         $sn = '';
         $order_id = 0;
         foreach ($rechargeOrders as $k=>&$v){
-            if($v['pay_status'] != 1){
+            if($v['pay_status'] == 0){
                 $pay_status = 0;
                 $order_id = $v['id'];
                 $sn = $v['sn'];
+                $work_amount += $v['order_amount'];
             }
-            $work_amount += $v['order_amount'];
         }
         $result['id'] = $externalShareOrder->id;
         $result['work_amount'] = $work_amount;
@@ -1559,8 +1559,7 @@ class ServiceWorkLogic extends BaseLogic
                 return  [];
             }
         }
-
-        $result['tip'] = '测试提示';
+        // $result['tip'] = '测试提示';
         return  $result;
     }