|
@@ -591,7 +591,7 @@ class User Extends Model
|
|
|
public static function RepertoryIntegralFree(){
|
|
|
//获取释放比例
|
|
|
$repertory_integral_ratio = Config::get_values('repertory_integral_ratio');
|
|
|
- User::where('equity_integral','>',100)->where('type',2)->field('id,repertory_integral,usable_integral')->chunk(20,function ($list) use ($repertory_integral_ratio){
|
|
|
+ User::where('repertory_integral','>',100)->where('type',2)->field('id,repertory_integral,usable_integral')->chunk(20,function ($list) use ($repertory_integral_ratio){
|
|
|
$repertory_integral_ratio = $repertory_integral_ratio/10000;
|
|
|
foreach ($list as &$v){
|
|
|
$equity = round($v['repertory_integral']*$repertory_integral_ratio,4); //保留4位小数四舍五入
|