|
@@ -1609,7 +1609,7 @@ class User extends Api
|
|
public function invitetop() {
|
|
public function invitetop() {
|
|
$data['invite_no'] = $this->auth->invite_no; //邀请码
|
|
$data['invite_no'] = $this->auth->invite_no; //邀请码
|
|
$data['invite_count'] = Db::name('user')->where(['pre_user_id' => $this->auth->id])->count('id'); //邀请人数
|
|
$data['invite_count'] = Db::name('user')->where(['pre_user_id' => $this->auth->id])->count('id'); //邀请人数
|
|
- $data['coupon_count'] = Db::name('user_coupon')->where(['user_id' => $this->auth->id, 'purpose' => 2])->count('id');
|
|
|
|
|
|
+ $data['coupon_count'] = Db::name('user_coupon')->where(['user_id' => $this->auth->id, 'purpose' => ['in', [2, 5]]])->count('id');
|
|
|
|
|
|
$this->success('邀请好友顶部信息', $data);
|
|
$this->success('邀请好友顶部信息', $data);
|
|
}
|
|
}
|