diff --git a/app/command/dayValue.php b/app/command/dayValue.php index 58e312c..ef0e053 100644 --- a/app/command/dayValue.php +++ b/app/command/dayValue.php @@ -122,16 +122,19 @@ class dayValue extends Command $user_temp = bcdiv($temp_value, (string)$num, 2); foreach ($nlv['uid'] as $uk => $uv) { $user = User::getDB()->where('uid', $uv)->find(); - $user->all_value = bcadd($user->all_value, $user_temp, 2); - $user->save(); - $user_log_data[] = [ - 'type' => 8, - 'types_of' => 1, - 'num' => $user_temp, - 'ctime' => date('Y-m-d H:i:s'), - 'memo' => $nlv['alias'] . '贡献值', - 'user_id' => $uv, - ]; + if($user->pay_price > 0){ + $user->all_value = bcadd($user->all_value, $user_temp, 2); + $user->save(); + $user_log_data[] = [ + 'type' => 8, + 'types_of' => 1, + 'num' => $user_temp, + 'ctime' => date('Y-m-d H:i:s'), + 'memo' => $nlv['alias'] . '贡献值', + 'user_id' => $uv, + ]; + } + } } else {