WIN-2308041133\Administrator il y a 1 an
Parent
commit
476bf0e062
1 fichiers modifiés avec 8 ajouts et 3 suppressions
  1. 8 3
      application/api/controller/Lave.php

+ 8 - 3
application/api/controller/Lave.php

@@ -194,9 +194,14 @@ class Lave extends Api
             $orderInfo = LaveMonthModel::where('order_id', $orderId)->find();
             @file_put_contents("quanju.txt", $orderId."-订单id\r\n", 8);
             @file_put_contents("quanju.txt", json_encode($orderInfo)."-创建支付订单搜索\r\n", 8);
-            var_dump(!$orderInfo);
-            var_dump(!isset($orderInfo['paid']));die();
-            if (!$orderInfo || !isset($orderInfo['paid'])) $this->error('支付订单不存在!');
+
+            $a=!$orderInfo;
+            $b= !isset($orderInfo['paid']);
+            @file_put_contents("quanju.txt", $a."-a\r\n", 8);
+            @file_put_contents("quanju.txt", $b."-b\r\n", 8);
+            if ($a || $b){
+                $this->error('支付订单不存在!');
+            }
             if ($orderInfo['paid']) $this->error('支付已支付!');
 //          创建签约
             $plan_record=[