|
@@ -377,4 +377,14 @@ class Index extends Api
|
|
|
Shield::where('id',input('id'))->delete()?$this->success('解除成功'):$this->error('解除失败');
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 申请认识你弹窗
|
|
|
+ * @ApiReturnParams (name='count',description='会员个数')
|
|
|
+ */
|
|
|
+ public function applyList(){
|
|
|
+ $data = Apply::all(['nid'=>$this->auth->id,'n_is_read'=>0],['uidinfo']);
|
|
|
+ $count = count($data);
|
|
|
+ $this->success('',['data'=>$count,'count'=>$count]);
|
|
|
+ }
|
|
|
}
|