Commit 95acd12f by 冷斌

fix bug

parent 80a6fa33
...@@ -68,7 +68,7 @@ class LevelController extends HomebaseController { ...@@ -68,7 +68,7 @@ class LevelController extends HomebaseController {
$cha_a=$levelinfo_a['level_up']-$userinfo['votestotal']; $cha_a=$levelinfo_a['level_up']-$userinfo['votestotal'];
if($cha_a>0) if($cha_a>0)
{ {
$Level_a['levelid'] = $Level_a['levelid'] > 1 ? ($Level_a['levelid']-1) : $Level_a['levelid']; $levelinfo_a['levelid'] = $levelinfo_a['levelid'] > 1 ? ($levelinfo_a['levelid']-1) : $levelinfo_a['levelid'];
$baifen_a=floor($userinfo['votestotal']/$levelinfo_a['level_up']*100); $baifen_a=floor($userinfo['votestotal']/$levelinfo_a['level_up']*100);
$type_a="1"; $type_a="1";
}else{ }else{
......
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