|
@@ -69,14 +69,20 @@ class View extends Core
|
|
|
if ($this->data['info']['pdate'] > 0) {
|
|
|
$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'];
|
|
|
}
|
|
|
+ */
|
|
|
|
|
|
- $link = Dever::url('view.get?type=' . $type . '&id=' . $id, 'h5');
|
|
|
- $this->data['info']['share_link'] = $link;
|
|
|
+ if ($this->source_type == 'ios') {
|
|
|
+ $source = Dever::db('source/info')->one(1);
|
|
|
+ $this->data['info']['share_link'] = $source['code'];
|
|
|
+ } else {
|
|
|
+ $link = Dever::url('view.get?type=' . $type . '&id=' . $id, 'h5');
|
|
|
+ $this->data['info']['share_link'] = $link;
|
|
|
+ }
|
|
|
|
|
|
if ($this->data['info']['num_view'] > 100000) {
|
|
|
|