chenhao 4 years ago
parent
commit
940a8a21ab
1 changed files with 22 additions and 0 deletions
  1. 22 0
      application/api/controller/MyActivity.php

+ 22 - 0
application/api/controller/MyActivity.php

@@ -675,4 +675,26 @@ class MyActivity extends Api
 
         return $this->success('',$data);
     }
+
+    /**
+     *
+     * 邀请记录
+     * @param string $a_id $活动id
+     */
+    public function yaoqing()
+    {
+        $a_id = $this->request->get('a_id');
+
+        $user = $this->auth->getUser();
+
+        $beUid = Db::name('fenxiang')
+            ->where('a_id',$a_id)
+            ->where('u_id',$user['id'])
+            ->column('be_uid');
+        $str = implode(',',$beUid);
+
+        $users = Db::name('user')->where('id','in',$str)->where('status',1)->field('id,username,avatar')->select();
+
+        return json(['code' => 1, 'data'=>$users]);
+    }
 }