fix: 代理编辑会员时不再覆盖bet_type字段,修复改限红后游戏桌消失的问题
This commit is contained in:
parent
4a0f6b29bf
commit
c7355bb760
@ -590,8 +590,8 @@ class Player Extends Common{
|
||||
$user_id = Request::instance()->post('user_id');
|
||||
$nickname = Request::instance()->post('nickname');
|
||||
$mobile = trim(Request::instance()->post('mobile'));
|
||||
// 编辑会员时不改变bet_type,保留原值
|
||||
//$bet_type = Request::instance()->post('bet_type');
|
||||
$bet_type = 3;
|
||||
$agent_commission = round(Request::instance()->post('agent_commission'),2);
|
||||
$agent_commission_dt = round(Request::instance()->post('agent_commission_dt'),2);
|
||||
$agent_commission_nn = round(Request::instance()->post('agent_commission_nn'),2);
|
||||
@ -629,9 +629,6 @@ class Player Extends Common{
|
||||
die(json_encode(['code'=>0,'msg'=>'请填写手机!']));
|
||||
}
|
||||
*/
|
||||
if($bet_type > 3 && $bet_type <= 0){
|
||||
die(json_encode(['code'=>0,'msg'=>$lang['bet_type_error']]));
|
||||
}
|
||||
if($agent_commission >= 10){
|
||||
die(json_encode(['code'=>0,'msg'=>$lang['agent_baccarat_cannot_exceed_10']]));
|
||||
}
|
||||
@ -709,7 +706,6 @@ class Player Extends Common{
|
||||
$user_data = array();
|
||||
$user_data['nickname'] = $nickname;
|
||||
$user_data['mobile'] = $mobile;
|
||||
$user_data['bet_type'] = $bet_type;
|
||||
$user_data['agent_commission'] = $agent_commission;
|
||||
$user_data['agent_commission_dt'] = $agent_commission_dt;
|
||||
$user_data['agent_commission_nn'] = $agent_commission_nn;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user