dever 4 年之前
父节点
当前提交
682ef3dab5
共有 2 个文件被更改,包括 6 次插入2 次删除
  1. 4 2
      app/collection/src/Api.php
  2. 2 0
      package/im_gateway_server/start.php

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

@@ -202,10 +202,12 @@ class Api extends Core
         $data['code'] = $this->getInfoCode();
 
         # 获取合集分享信息
-        $data['share'] = $this->getInfoShare($data['info']);
+        if ($this->uid && $this->uid > 0) {
+            $data['share'] = $this->getInfoShare($data['info']);
+        }
 
         $data['share_user'] = array();
-        if ($this->share_uid && $this->share_uid > 0) {
+        if ($this->uid && $this->uid > 0 && $this->share_uid && $this->share_uid > 0) {
             # 获取分享人信息
             $data['share_user'] = $this->getUser($this->share_uid, $data['info']['id']);
             if ($data['share_user']) {

+ 2 - 0
package/im_gateway_server/start.php

@@ -0,0 +1,2 @@
+<?php
+include('dever_package/dreamland/im_gateway_server/start.php');