login notify + bonus log

This commit is contained in:
xiaomlove
2023-01-31 16:38:21 +08:00
parent 3edb283b62
commit 9c0f458920
26 changed files with 552 additions and 7 deletions
+5
View File
@@ -55,6 +55,11 @@ class BonusLogs extends NexusModel
self::BUSINESS_TYPE_GIFT_MEDAL => ['text' => 'Gift medal to someone'],
];
public function getBusinessTypeTextAttribute()
{
return nexus_trans('bonus-log.business_types.' . $this->business_type);
}
public static function getBonusForCancelHitAndRun()
{
$result = Setting::get('bonus.cancel_hr');