cp分成比例方法修正

master
zyx 5 years ago
parent 782de31ca8
commit 414d36c373

@ -2044,7 +2044,7 @@ function getGameCpRadio($game_id,$amount,$type) {
if (!$type) { if (!$type) {
$data = M('cp_game_ratio','tab_')->where(['game_id'=>$game_id])->order('begin_total_amount desc')->find(); $data = M('cp_game_ratio','tab_')->where(['game_id'=>$game_id])->order('begin_total_amount asc')->find();
} else { } else {
//取两条 //取两条
$ladderData = M('cp_game_ratio','tab_')->where(['game_id'=>$game_id,'begin_total_amount'=>['elt',$amount]])->limit(0,2)->order('begin_total_amount desc')->select(); $ladderData = M('cp_game_ratio','tab_')->where(['game_id'=>$game_id,'begin_total_amount'=>['elt',$amount]])->limit(0,2)->order('begin_total_amount desc')->select();

Loading…
Cancel
Save