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

+ 6 - 6
main/src/Journal.php

@@ -134,7 +134,12 @@ class Journal extends Core
             $this->setButton('share', -1);
         }
 
-        if ($subscribe == 1) {
+        if ($info['buy'] == 2) {
+            # 免费的
+            $this->setButton('read', 1, '开始阅读');
+            $this->setButton('code', -1);
+            $this->setButton('share', -1);
+        } elseif ($subscribe == 1) {
             $this->data['info']['subscribe'] = 1;
             # 已订阅
             $this->setButton('read', 1, '开始阅读');
@@ -143,11 +148,6 @@ class Journal extends Core
             # 需要购买
             $this->setButton('read', 2, '购买阅读');
             $this->setButton('code', 1, '兑换码阅读');
-        } elseif ($info['buy'] == 2) {
-            # 免费的
-            $this->setButton('read', 1, '开始阅读');
-            $this->setButton('code', -1);
-            $this->setButton('share', -1);
         }
     }