|
|
|
@ -207,6 +207,13 @@ class UserAssetsRepository extends BaseRepository |
|
|
|
|
$share = floor(($shareStatistics->current - $shareStatistics->last_point) / $config['share_get_welfare_limit']); |
|
|
|
|
$shareStatistics->last_point = $shareStatistics->last_point + $config['share_get_welfare_limit'] * $share; |
|
|
|
|
$shareStatistics->save(); |
|
|
|
|
$logList[] = array( |
|
|
|
|
'uid' => $item['uid'], |
|
|
|
|
'asset_type' => UserAssetsLogRepository::ASSET_TYPE_SHARE_POINT, |
|
|
|
|
'type' => UserAssetsLogRepository::CHANGE_TYPE_SHARE_GET, |
|
|
|
|
'status' => UserAssetsLogRepository::STATUS_SUCCESS, |
|
|
|
|
'count' => -$share, |
|
|
|
|
); |
|
|
|
|
$this->update($item['uid'], array('share_point' => $assets['share_point'] - $share)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|