seven hace 1 mes
padre
commit
cf04cddd69
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/Services/PaymentOrderService.php

+ 2 - 2
app/Services/PaymentOrderService.php

@@ -19,7 +19,7 @@ use App\Services\Payment\SanJinService;
 class PaymentOrderService extends BaseService 
 {
     const TYPE_PAY = 1; // 代收
-    const TYPE_PAYOUT = 1; // 代付
+    const TYPE_PAYOUT = 2; // 代付
 
     const STATUS_STAY = 0;  // 待处理
     const STATUS_PROCESS = 1; // 处理中
@@ -158,7 +158,7 @@ class PaymentOrderService extends BaseService
         $data['status'] = self::STATUS_STAY;
         $ret = SanJinService::payout($amount,$order_no,$bank_name,$account,$card_no);
 
-        if($ret['code'] = 200){
+        if($ret['code'] == 200){
             $data['status'] = self::STATUS_PROCESS;
         }else{
             $data['status'] = self::STATUS_FAIL;