dever 6 years ago
parent
commit
2ba2c23014
1 changed files with 5 additions and 0 deletions
  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+';
         }