WIN-2308041133\Administrator 6 月之前
父節點
當前提交
01dcb252d0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      application/api/controller/Lave.php

+ 2 - 2
application/api/controller/Lave.php

@@ -185,14 +185,14 @@ class Lave extends Api
         if (!$order) $this->error(LaveModel::getErrorInfo());
         $orderId = $order['order_id'];
         $info = compact('orderId');
-        $order['plan_id'] = WechatPlan::where('cid', $where['cid'])->value('plan_id');
+        $order['plan_id'] = $where1['plan_id'];
         if ($orderId) {
             $orderInfo = LaveModel::where('order_id', $orderId)->find();
             if (!$orderInfo || !isset($orderInfo['paid'])) $this->error('支付订单不存在!');
             if ($orderInfo['paid']) $this->error('支付已支付!');
 //          创建签约
             $plan_record=[
-                'plan_id'=>WechatPlan::where('price', $where['amount'])->value('plan_id'),
+                'plan_id'=>$where1['plan_id'],
                 'cid'=>$where['cid'],
                 'uid'=>$where['user_id'],
                 'price'=>$where['amount'],