dever 4 年之前
父節點
當前提交
4ea7a12ec7
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 2 1
      app/collection/lib/Content.php
  2. 2 1
      app/collection/src/Api.php

+ 2 - 1
app/collection/lib/Content.php

@@ -41,7 +41,7 @@ class Content
                     $userinfo = Dever::load('user/lib/info')->get($info['uid'], $info_id);
                     $page['username'] = $userinfo['username'];
 
-                    $page['copyright'] = '如不慎侵害您的权益,请告知,我们将第一时间修改';
+                    $page['copyright'] = '所有内容为网友上传,不代表合小记观点';
                 } else {
                     $page['author_name'] = '';
                     $page['username'] = '官方';
@@ -49,6 +49,7 @@ class Content
                 }
                 
                 $result[$i] = $page;
+                $result[$i]['id'] = 
                 $result[$i]['data'] = -1;
                 $result[$i]['type'] = -1;
                 $result[$i]['times'] = $result[$i]['times_parent'] = '';

+ 2 - 1
app/collection/src/Api.php

@@ -35,7 +35,8 @@ class Api extends Core
     # 获取二维码
     public function qrcode($url, $content_id)
     {
-        $file = 'shareDv_' . $this->uid . '_' . $this->id . '_' . $content_id;
+        //$file = 'shareDv_' . $this->uid . '_' . $this->id . '_' . $content_id;
+        $file = 'shareDv_' . md5($this->user['avatar']);
         $file = Dever::load('qrcode/api')->qrcode($url, $file, $this->user['avatar']);
 
         return $file['url'];