|
|
@ -122,7 +122,7 @@ class dayValue extends Command |
|
|
|
$user_temp = bcdiv($temp_value, (string)$num, 2); |
|
|
|
$user_temp = bcdiv($temp_value, (string)$num, 2); |
|
|
|
foreach ($nlv['uid'] as $uk => $uv) { |
|
|
|
foreach ($nlv['uid'] as $uk => $uv) { |
|
|
|
$user = User::getDB()->where('uid', $uv)->find(); |
|
|
|
$user = User::getDB()->where('uid', $uv)->find(); |
|
|
|
if($user->pay_price > 0){ |
|
|
|
//if($user->pay_price > 0){ |
|
|
|
$user->all_value = bcadd($user->all_value, $user_temp, 2); |
|
|
|
$user->all_value = bcadd($user->all_value, $user_temp, 2); |
|
|
|
$user->save(); |
|
|
|
$user->save(); |
|
|
|
$user_log_data[] = [ |
|
|
|
$user_log_data[] = [ |
|
|
@ -133,7 +133,7 @@ class dayValue extends Command |
|
|
|
'memo' => $nlv['alias'] . '贡献值', |
|
|
|
'memo' => $nlv['alias'] . '贡献值', |
|
|
|
'user_id' => $uv, |
|
|
|
'user_id' => $uv, |
|
|
|
]; |
|
|
|
]; |
|
|
|
} |
|
|
|
//} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|