limu 1 year ago
parent f876ca6025
commit 4b7bc78eb3
  1. 3
      app/command/dayValue.php

@ -122,6 +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){
$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[] = [
@ -134,6 +135,8 @@ class dayValue extends Command
]; ];
} }
}
} else { } else {
$has = Community::getDB()->where('community_id', $nlv['id'])->find(); $has = Community::getDB()->where('community_id', $nlv['id'])->find();
if (!$has) { if (!$has) {

Loading…
Cancel
Save