rabin hace 6 años
padre
commit
9bdc36dd1e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      h5/src/View.php

+ 2 - 1
h5/src/View.php

@@ -46,7 +46,8 @@ class View extends Core
 
         if ($data && $template) {
 
-            if ($data['status'] == 1 && $preview != 1) {
+            print_r($data);die;
+            if (isset($data['status']) && $data['status'] == 1 && $preview != 1) {
                 Dever::alert('您访问的内容已下架');
             }
             if (isset($data['info']['content_array'])) {