Commit 553e1060 by 冷斌

支付宝

parent 796c288a
......@@ -32,6 +32,7 @@ class LevelController extends HomebaseController {
$cha=$levelinfo['level_up']+1-$userinfo['consumption'];
if($cha>0)
{
$levelinfo['levelid'] = $levelinfo['levelid'] > 1 ? ($levelinfo['levelid']-1) : $levelinfo['levelid'];
$baifen=floor($userinfo['consumption']/$levelinfo['level_up']*100);
$type="1";
}else{
......@@ -51,6 +52,7 @@ class LevelController extends HomebaseController {
$levelinfo_a=$Level_a->where("level_up>='{$userinfo['votestotal']}'")->order("levelid asc")->find();
if(!$levelinfo_a){
$Level_a['levelid'] = $Level_a['levelid'] > 1 ? ($Level_a['levelid']-1) : $Level_a['levelid'];
$levelinfo_a=$Level_a->order("levelid desc")->find();
}
$cha_a=$levelinfo_a['level_up']+1-$userinfo['votestotal'];
......
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