dever 4 years ago
parent
commit
04d22ff22a
2 changed files with 11 additions and 1 deletions
  1. 1 1
      app/collection/src/Api.php
  2. 10 0
      app/user/src/Api.php

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

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

+ 10 - 0
app/user/src/Api.php

@@ -46,6 +46,16 @@ class Api extends Core
         return $data;
     }
 
+    # 收下门票
+    public function getTicket()
+    {
+        $info = $this->checkInfo();
+        $is_buy = $this->checkView();
+        if (!$is_buy && $this->share_uid && $this->share_uid > 0) {
+            
+        }
+    }
+
     # 保存用户信息
     public function up()
     {