From 782de31ca87dc3ef941b38e8a49cdc747755a8e6 Mon Sep 17 00:00:00 2001 From: zyx Date: Wed, 5 Feb 2020 17:24:53 +0800 Subject: [PATCH] =?UTF-8?q?cp=E5=88=86=E6=88=90=E6=AF=94=E4=BE=8B=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/extend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index 3eefa7b83..78b0cfe18 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -2044,7 +2044,7 @@ function getGameCpRadio($game_id,$amount,$type) { if (!$type) { - $data = M('cp_game_ratio','tab_')->where(['game_id'=>$game_id])->find(); + $data = M('cp_game_ratio','tab_')->where(['game_id'=>$game_id])->order('begin_total_amount desc')->find(); } 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();