Commit 78470151 by 冷斌

update

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