|
|
|
@ -416,7 +416,7 @@ class User extends BaseController |
|
|
|
|
->where('ctime', '<=', $end) |
|
|
|
|
->count(); |
|
|
|
|
|
|
|
|
|
if ($count > 10) { |
|
|
|
|
if (!empty($count) && $count > 10) { |
|
|
|
|
return app('json')->fail('达到上限'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -477,14 +477,16 @@ class User extends BaseController |
|
|
|
|
$list['user']['hp_value'] = $user->hp_value; |
|
|
|
|
$list['user']['all_value'] = $user->all_value; |
|
|
|
|
$list['user']['brokerage_price'] = $user->brokerage_price; |
|
|
|
|
|
|
|
|
|
//当前平台奖池总奖金 |
|
|
|
|
$all = systemConfig('all_award'); |
|
|
|
|
//当前平台增值积分总个数 |
|
|
|
|
$allBrandValue = userModel::getDB()->where('status', 1)->sum('brokerage_price') ?? 1; |
|
|
|
|
|
|
|
|
|
//增值积分实时价格=当前平台奖池总奖金/当前平台增值积分总个数 |
|
|
|
|
$shishi = $all / $allBrandValue; |
|
|
|
|
if(!empty($all) && !empty($allBrandValue)){ |
|
|
|
|
$shishi = bcdiv($all,$allBrandValue,2); |
|
|
|
|
}else{ |
|
|
|
|
$shishi = 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//平台增值积分实时价格 |
|
|
|
|
$list['user']['proportion'] = $shishi; |
|
|
|
@ -492,6 +494,7 @@ class User extends BaseController |
|
|
|
|
|
|
|
|
|
return app('json')->success($list); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//获取付款配置 |
|
|
|
|