Commit 78470151 by 冷斌

update

parent d7324479
...@@ -25,11 +25,7 @@ class LevelController extends HomebaseController { ...@@ -25,11 +25,7 @@ class LevelController extends HomebaseController {
$this->assign("userinfo",$userinfo); $this->assign("userinfo",$userinfo);
/* 用户等级 */ /* 用户等级 */
$Level=M("experlevel"); $Level=M("experlevel");
$consumption = $userinfo['consumption']; $levelinfo=$Level->where("level_up>'{$userinfo['consumption']}'")->order("levelid asc")->find();
if ((int)$consumption === 0 ) {
$consumption = 1;
}
$levelinfo=$Level->where("level_up>='{$consumption}'")->order("levelid asc")->find();
if(!$levelinfo){ if(!$levelinfo){
$levelinfo=$Level->order("levelid desc")->find(); $levelinfo=$Level->order("levelid desc")->find();
} }
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</div> </div>
<div class="levright"> <div class="levright">
<if condition="$type eq '1'"> <if condition="$type eq '1'">
LV.{$levelinfo['levelid']+1} LV.{$levelinfo['levelid']}
<else/> <else/>
LV.Max LV.Max
</if> </if>
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
</div> </div>
<div class="levright"> <div class="levright">
<if condition="$type_a eq '1'"> <if condition="$type_a eq '1'">
LV.{$levelinfo_a['levelid']+1} LV.{$levelinfo_a['levelid']}
<else/> <else/>
LV.Max LV.Max
</if> </if>
......
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