dever 6 年之前
父节点
当前提交
39fc86b71e
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      main/src/Journal_v1.php

+ 5 - 1
main/src/Journal_v1.php

@@ -356,7 +356,11 @@ class Journal_v1 extends Core
     {
         $subscribe = 2;
         $id = Dever::input('id');
-        if ($this->data['uid']) {
+        $this->check();
+        $this->data['info'] = $this->info($this->data['info'], false);
+        if ($this->data['info']['ytype'] == 2) {
+            $subscribe = 3;
+        } elseif ($this->data['uid']) {
             $subscribe = Dever::load('act/lib/subscribe')->get($id, $this->data['uid'], 4);
         }