rabin 3 سال پیش
والد
کامیت
e069257bbc
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 1 1
      app/collection/lib/Core.php
  2. 1 0
      app/collection/src/Api.php

+ 1 - 1
app/collection/lib/Core.php

@@ -108,7 +108,7 @@ class Core
     protected function checkView()
     {
         if ($this->uid < 1) {
-            Dever::alert('请先登录', -2);
+            return false;
         }
         if (!$this->info) {
             $this->checkInfo();

+ 1 - 0
app/collection/src/Api.php

@@ -388,6 +388,7 @@ class Api extends Core
         if ($data['info']['uid'] > 0) {
             $data['info']['user'] = $this->getUser($data['info']['uid'], $data['info']['id']);
         }
+        
         $data['info']['pic_bg'] = explode(',', $data['info']['pic_bg']);
 
         # 是否可以阅读