dever 6 vuotta sitten
vanhempi
commit
288cbe358f
3 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 1 1
      main/lib/View.php
  2. 3 0
      main/src/Preview.php
  3. 1 0
      main/src/View.php

+ 1 - 1
main/lib/View.php

@@ -15,7 +15,7 @@ class View
         if ($param['type'] == 3) {
             if (isset($param['status']) && $param['status'] == 2) {
                 # 直播中
-                Dever::load('act/lib/watch')->submit($this->data['uid'], $id, $type);
+                Dever::load('act/lib/watch')->submit($param['uid'], $id, $type);
             }
         }
 

+ 3 - 0
main/src/Preview.php

@@ -43,6 +43,9 @@ class Preview
         }
 
         //echo $scene;die;
+        if ($info['cate_id'] >= 4) {
+            $info['cate_id'] = 1;
+        }
         $send['project'] = $info['cate_id'];
         $send['send'] = $scene;
         $send['width'] = 152;

+ 1 - 0
main/src/View.php

@@ -151,6 +151,7 @@ class View extends Core
         # 传给下一步操作的参数
         $this->data['end']['type'] = $type;
         $this->data['end']['id'] = $id;
+        $this->data['end']['uid'] = $this->data['uid'];
         $this->data['end']['method'] = $method;
         $this->data['end']['addview'] = $this->addView;
         $this->data['end']['status'] = isset($this->data['info']['status']) ? $this->data['info']['status'] : false;