limu 11 months ago
parent f876ca6025
commit 4b7bc78eb3
  1. 23
      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 {

Loading…
Cancel
Save