Prechádzať zdrojové kódy

用户支付-测试

whitefang 1 rok pred
rodič
commit
dd72765d23
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      app/common/logic/PaymentLogic.php

+ 2 - 1
app/common/logic/PaymentLogic.php

@@ -197,7 +197,7 @@ class PaymentLogic extends BaseLogic
 
 
         if ($order['order_amount'] == 0) {
         if ($order['order_amount'] == 0) {
             PayNotifyLogic::handle($from, $order['sn']);
             PayNotifyLogic::handle($from, $order['sn']);
-            return ['sn' => $order['sn']];
+            return ['sn' => $order['sn'],'need_pay'=>0];
         }
         }
 
 
         $payService = null;
         $payService = null;
@@ -221,6 +221,7 @@ class PaymentLogic extends BaseLogic
         if (false === $result && !self::hasError()) {
         if (false === $result && !self::hasError()) {
             self::setError($payService->getError());
             self::setError($payService->getError());
         }
         }
+        $result['need_pay'] = 1;
         return $result;
         return $result;
     }
     }