|
|
@@ -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=[
|