|
|
@ -97,7 +97,7 @@ class brand extends Command |
|
|
|
//用户总贡献值 = 当前总贡献值+昨日的品宣贡献值 |
|
|
|
//用户总贡献值 = 当前总贡献值+昨日的品宣贡献值 |
|
|
|
$all_value = $brandGongxian + $v['all_value']; |
|
|
|
$all_value = $brandGongxian + $v['all_value']; |
|
|
|
|
|
|
|
|
|
|
|
$growth_num = bcdiv($all_value, $v['growth_rate'], 2); |
|
|
|
$growth_num = bcdiv((string)$all_value, (string)$v['growth_rate'], 2); |
|
|
|
userModel::getDB() |
|
|
|
userModel::getDB() |
|
|
|
->where('uid', $v['uid']) |
|
|
|
->where('uid', $v['uid']) |
|
|
|
->update([ |
|
|
|
->update([ |
|
|
|