dever 4 年之前
父节点
当前提交
4be1b979ff

+ 2 - 0
app/community/lib/Tips.php

@@ -47,6 +47,8 @@ class Tips
         }
         if ($playtime) {
             $where['playtime'] = $playtime;
+        } else {
+            $where['playtime'] = '-1';
         }
         $table = 'community/tips';
         $info = false;

+ 1 - 1
app/community/src/Api.php

@@ -107,7 +107,7 @@ class Api extends Core
     public function addTips()
     {
         $pic = Dever::input('pic');
-        $playtime = Dever::input('playtime');
+        $playtime = Dever::input('playtime', -1);
         $content = Dever::input('content');
         if (!$content) {
             Dever::alert('请填写内容');

+ 22 - 2
app/content/database/audio_comment.php

@@ -75,7 +75,7 @@ return array
         'title'     => array
         (
             'type'      => 'varchar-80',
-            'name'      => '发布窗口标题',
+            'name'      => '交流发布窗口标题',
             'default'   => '',
             'desc'      => '发布窗口标题',
             'match'     => 'option',
@@ -97,6 +97,26 @@ return array
             'option'    => $type,
         ),
 
+        'seat_price'      => array
+        (
+            'type'      => 'int-11',
+            'name'      => '座位单价',
+            'default'   => '1',
+            'desc'      => '座位单价',
+            'match'     => 'is_numeric',
+            'update'    => 'text',
+        ),
+
+        'hall_num'      => array
+        (
+            'type'      => 'int-11',
+            'name'      => '放映厅总数',
+            'default'   => '10',
+            'desc'      => '放映厅总数',
+            'match'     => 'is_numeric',
+            'update'    => 'text',
+        ),
+
         'desc'      => array
         (
             'type'      => 'varchar-500',
@@ -104,7 +124,7 @@ return array
             'default'   => '',
             'desc'      => '摘要',
             'match'     => 'option',
-            'update'    => 'textarea',
+            //'update'  => 'textarea',
         ),
 
         

+ 22 - 2
app/content/database/live.php

@@ -75,7 +75,7 @@ return array
         'title'     => array
         (
             'type'      => 'varchar-80',
-            'name'      => '发布窗口标题',
+            'name'      => '交流发布窗口标题',
             'default'   => '',
             'desc'      => '发布窗口标题',
             'match'     => 'option',
@@ -97,6 +97,26 @@ return array
             'option'    => $type,
         ),
 
+        'seat_price'      => array
+        (
+            'type'      => 'int-11',
+            'name'      => '座位单价',
+            'default'   => '1',
+            'desc'      => '座位单价',
+            'match'     => 'is_numeric',
+            'update'    => 'text',
+        ),
+
+        'hall_num'      => array
+        (
+            'type'      => 'int-11',
+            'name'      => '放映厅总数',
+            'default'   => '10',
+            'desc'      => '放映厅总数',
+            'match'     => 'is_numeric',
+            'update'    => 'text',
+        ),
+
         'desc'      => array
         (
             'type'      => 'varchar-500',
@@ -104,7 +124,7 @@ return array
             'default'   => '',
             'desc'      => '摘要',
             'match'     => 'option',
-            'update'    => 'textarea',
+            //'update'  => 'textarea',
         ),
 
         

+ 22 - 2
app/content/database/video_comment.php

@@ -75,7 +75,7 @@ return array
 		'title'		=> array
 		(
 			'type' 		=> 'varchar-80',
-			'name' 		=> '发布窗口标题',
+			'name' 		=> '交流发布窗口标题',
 			'default' 	=> '',
 			'desc' 		=> '发布窗口标题',
 			'match' 	=> 'option',
@@ -97,6 +97,26 @@ return array
             'option'    => $type,
         ),
 
+        'seat_price'      => array
+        (
+            'type'      => 'int-11',
+            'name'      => '座位单价',
+            'default'   => '1',
+            'desc'      => '座位单价',
+            'match'     => 'is_numeric',
+            'update'    => 'text',
+        ),
+
+        'hall_num'      => array
+        (
+            'type'      => 'int-11',
+            'name'      => '放映厅总数',
+            'default'   => '10',
+            'desc'      => '放映厅总数',
+            'match'     => 'is_numeric',
+            'update'    => 'text',
+        ),
+
 		'desc'		=> array
 		(
 			'type' 		=> 'varchar-500',
@@ -104,7 +124,7 @@ return array
 			'default' 	=> '',
 			'desc' 		=> '摘要',
 			'match' 	=> 'option',
-			'update'	=> 'textarea',
+			//'update'	=> 'textarea',
 		),
 
 		

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

@@ -22,7 +22,9 @@ class Seat
 		$my = Dever::db('user/seat')->getMyData($where);
 
 		$data = array();
+		$data['play'] = false;
 		if ($my) {
+			$data['play'] = true;
 			foreach ($my as $k => $v) {
 				$key = $v['hall'] . '_' . $v['seat_row'] . '_' . $v['seat_column'];
 				$v['user'] = Dever::load('user/lib/info')->get($v['uid'], $info_id);