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

+ 5 - 0
main/src/View.php

@@ -50,6 +50,11 @@ class View extends Core
             $this->data['info']['pdate_time'] = date('Y-m-d H:i:s', $this->data['info']['pdate']);
         }
 
+        if (isset($this->data['info']['share_content'])) {
+            $source = Dever::db('source/info')->one(1);
+            $this->data['info']['share_link'] = $source['code'];
+        }
+
         if ($this->data['info']['num_view'] > 100000) {
             //$this->data['info']['num_view'] = '10w+';
         }