dever 4 роки тому
батько
коміт
c63a0b825b
1 змінених файлів з 2 додано та 3 видалено
  1. 2 3
      app/user/src/Pay.php

+ 2 - 3
app/user/src/Pay.php

@@ -83,8 +83,7 @@ class Pay extends Core
 
         $index = Dever::input('index');
         $type = Dever::input('type');
-        $type_id = Dever::input('type_id');
-        $info = Dever::db($type)->one($type_id);
+        $info = Dever::db($type)->one($content_id);
 
         if (!$info) {
             Dever::alert('请选择正确的座位');
@@ -96,7 +95,7 @@ class Pay extends Core
         $refer = str_replace('{code}', $code, $refer);
         $location = str_replace('{code}', $code, $location);
 
-        $pay = Dever::load('user/lib/seat')->action($this->share_uid$this->uid, $this->id, $this->parent_page_id, $this->page_id, $this->times, $this->day, $content_id, $index, $seat, $info['seat_price'], $this->system_source, $refer);
+        $pay = Dever::load('user/lib/seat')->action($this->share_uid, $this->uid, $this->id, $this->parent_page_id, $this->page_id, $this->times, $this->day, $content_id, $index, $seat, $info['seat_price'], $this->system_source, $refer);
 
         $pay['location'] = $location;