WIN-2308041133\Administrator 1 年之前
父節點
當前提交
476bf0e062
共有 1 個文件被更改,包括 8 次插入3 次删除
  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=[