管理后台->充值->平台币订单->平台币回收--更新

master
chenxiaojun 5 years ago
commit f7d0109ee7

@ -110,9 +110,6 @@ class PromoteCoinController extends ThinkController
public function deduct() public function deduct()
{ {
if (empty(I('user_id'))) {
$this->error('请输入正确的玩家账号');
}
$this->m_title = '平台币收回'; $this->m_title = '平台币收回';
$this->assign('commonset', M('Kuaijieicon')->where(['url' => 'PromoteCoin/deduct_lists', 'status' => 1])->find()); $this->assign('commonset', M('Kuaijieicon')->where(['url' => 'PromoteCoin/deduct_lists', 'status' => 1])->find());
$this->add(2, 'deduct_lists', $_REQUEST['typee'] ? $_REQUEST['typee'] : 1); $this->add(2, 'deduct_lists', $_REQUEST['typee'] ? $_REQUEST['typee'] : 1);
@ -137,6 +134,9 @@ class PromoteCoinController extends ThinkController
} }
//平台币修改 //平台币修改
if ($tt == 1) { if ($tt == 1) {
if (empty(I('user_id'))) {
$this->error('请输入正确的玩家账号');
}
$res = D('User')->edit_user_balance_coin(I('user_id'), abs(I('num'))); $res = D('User')->edit_user_balance_coin(I('user_id'), abs(I('num')));
} else { } else {
$promoteService = new PromoteService(); $promoteService = new PromoteService();

Loading…
Cancel
Save