|
|
@ -661,7 +661,7 @@ class PromoteCoinController extends BaseController
|
|
|
|
$promote = $this->getLoginPromote();
|
|
|
|
$promote = $this->getLoginPromote();
|
|
|
|
$map = ['chain' => ['like', $promote['chain'] . $promote['id'] . '/%']];
|
|
|
|
$map = ['chain' => ['like', $promote['chain'] . $promote['id'] . '/%']];
|
|
|
|
$promoteIds = D('Promote')->field('id')->where($map)->getField('id', true);
|
|
|
|
$promoteIds = D('Promote')->field('id')->where($map)->getField('id', true);
|
|
|
|
$promoteIds[] = $id;
|
|
|
|
$promoteIds[] = $promote['id'];
|
|
|
|
if ($account) {
|
|
|
|
if ($account) {
|
|
|
|
$map['account'] = ['like', '%' . $account . '%'];
|
|
|
|
$map['account'] = ['like', '%' . $account . '%'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|