master
chenxiaojun 5 years ago
parent 93b3affa75
commit 1cfba9a3b5

@ -17,6 +17,9 @@ class ApplyService {
$ids = [$promoteId];
$list = M('promote', 'tab_')->field('id')->where('parent_id=' . $promoteId . ' or grand_id=' . $promoteId)->select();
$ids = array_merge($ids, array_column($list, 'id'));
M('apply', 'tab_')->where(['game_id' => $gameId, 'promote_id' => ['in', $ids]])->delete();
$save['offline_status'] = 1;
M('apply', 'tab_')->where(['game_id' => $gameId, 'promote_id' => ['in', $ids]])->save($save);
}
}

@ -90,6 +90,7 @@ class PromoteCoinController extends BaseController
$this->assign('data', $data);
$this->assign('count', $count);
$this->meta_title = '我的平台币';
$this->display();
}
@ -198,6 +199,7 @@ class PromoteCoinController extends BaseController
$this->assign('count', $count);
$this->assign('gameId', I('get.game_id'));
$this->assign('setDate', date("Y-m-d"));
$this->meta_title = '交易明细';
$this->display();
}
@ -258,6 +260,7 @@ class PromoteCoinController extends BaseController
}
$this->assign('data', $data);
$this->meta_title = '查看明细';
$this->display();
}

@ -231,7 +231,7 @@ class UserController extends BaseController
$userData = M('User', 'tab_')->where($whereUser)->find();
if (!empty($userData)) {
if (empty($userData['promote_id'])) {
if (empty($userData['promote_id']) && empty($userData['promote_account'])) {
$saveData['promote_id'] = $promoteId;
$saveData['promote_account'] = $promoteData['account'];

Loading…
Cancel
Save