|
@@ -27,6 +27,22 @@ class Index extends Api
|
|
|
$this->success(1,$list);
|
|
|
}
|
|
|
|
|
|
+ //我的邀请
|
|
|
+ public function myintro(){
|
|
|
+ $introme = Db::name('user')->field('id,nickname,avatar,jointime')->where('id',$this->auth->intro_uid)->find();
|
|
|
+ $introme = info_domain_image($introme,['avatar']);
|
|
|
+
|
|
|
+ $myintro = Db::name('user')->field('id,nickname,avatar,jointime')->where('intro_uid',$this->auth->id)->select();
|
|
|
+ $myintro = list_domain_image($myintro,['avatar']);
|
|
|
+
|
|
|
+ $rs = [
|
|
|
+ 'introme' => $introme,
|
|
|
+ 'myintro' => $myintro,
|
|
|
+ ];
|
|
|
+
|
|
|
+ $this->success(1,$rs);
|
|
|
+ }
|
|
|
+
|
|
|
//用户积分日志
|
|
|
public function user_score_log(){
|
|
|
$type = input('type',1);
|