Commit 9d0e8e21 by 冷斌

支付宝

parent 81292981
......@@ -25,8 +25,7 @@ class LevelController extends HomebaseController {
$this->assign("userinfo",$userinfo);
/* 用户等级 */
$Level=M("experlevel");
$levelinfo=$Level->where("level_up<='{$userinfo['consumption']}'")->order("levelid desc")->find();
$levelinfo=$Level->where("level_up>='{$userinfo['consumption']}'")->order("levelid asc")->find();
if(!$levelinfo){
$levelinfo=$Level->order("levelid desc")->find();
}
......@@ -50,7 +49,7 @@ class LevelController extends HomebaseController {
/* 主播等价 */
$Level_a=M("experlevel_anchor");
$levelinfo_a=$Level_a->where("level_up<='{$userinfo['votestotal']}'")->order("levelid desc")->find();
$levelinfo_a=$Level_a->where("level_up>='{$userinfo['votestotal']}'")->order("levelid asc")->find();
if(!$levelinfo_a){
$levelinfo_a=$Level_a->order("levelid desc")->find();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment