|
@@ -182,7 +182,7 @@ class Lave extends Api
|
|
|
$plan_id=$where1['plan_id'];
|
|
|
// unset($where1['plan_id']);
|
|
|
$order = LaveMonthModel::create($where1);
|
|
|
- @file_put_contents("quanju.txt", json_encode($order)."-创建支付订单\r\n", 8);
|
|
|
+
|
|
|
$where1['contract_code'] = WechatPlanRecord::getNewCode();
|
|
|
$where1['contract_display_account']=$contract_display_account;
|
|
|
cache('lave_' . $where['user_id'], '1', 10);
|
|
@@ -192,6 +192,8 @@ class Lave extends Api
|
|
|
$order['plan_id'] = $plan_id;
|
|
|
if ($orderId) {
|
|
|
$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);
|
|
|
if (!$orderInfo || !isset($orderInfo['paid'])) $this->error('支付订单不存在!');
|
|
|
if ($orderInfo['paid']) $this->error('支付已支付!');
|
|
|
// 创建签约
|