dever 4 년 전
부모
커밋
b567ad5794
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      app/user/lib/Seat.php

+ 9 - 0
app/user/lib/Seat.php

@@ -174,6 +174,15 @@ class Seat
             Dever::alert('支付失败');
         }
 
+        if ($num <= 0) {
+            # 免费赠送一个座位
+            $param['pay_order_id'] = $order_data['order_id'];
+            $param['pay_status'] = 2;
+            $param['pay_msg'] = '免费';
+            $this->success($param);
+            return array('type' => 'free');
+        }
+
         $param = array
         (
             'project_id' => 3,