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
+2
View File
@@ -34,6 +34,8 @@ return [
'torrent_operation_log' => 'Torrent operation logs',
'invite' => 'Invites',
'user_props' => 'User props',
'login_log' => 'Login logs',
'bonus_log' => 'Bonus logs',
],
'resources' => [
'agent_allow' => [
+30
View File
@@ -0,0 +1,30 @@
<?php
return [
'business_types' => [
\App\Models\BonusLogs::BUSINESS_TYPE_CANCEL_HIT_AND_RUN => 'Cancel H&R',
\App\Models\BonusLogs::BUSINESS_TYPE_BUY_MEDAL => 'Buy medal',
\App\Models\BonusLogs::BUSINESS_TYPE_BUY_ATTENDANCE_CARD => 'Buy attendance card',
\App\Models\BonusLogs::BUSINESS_TYPE_STICKY_PROMOTION => 'Sticky promotion',
\App\Models\BonusLogs::BUSINESS_TYPE_POST_REWARD => 'Post reward',
\App\Models\BonusLogs::BUSINESS_TYPE_EXCHANGE_UPLOAD => 'Exchange uploaded',
\App\Models\BonusLogs::BUSINESS_TYPE_EXCHANGE_INVITE => 'Buy invite',
\App\Models\BonusLogs::BUSINESS_TYPE_CUSTOM_TITLE => 'Custom title',
\App\Models\BonusLogs::BUSINESS_TYPE_BUY_VIP => 'Buy VIP',
\App\Models\BonusLogs::BUSINESS_TYPE_GIFT_TO_SOMEONE => 'Gift to someone',
\App\Models\BonusLogs::BUSINESS_TYPE_NO_AD => 'Cancel ad',
\App\Models\BonusLogs::BUSINESS_TYPE_GIFT_TO_LOW_SHARE_RATIO => 'Gift to low share ratio',
\App\Models\BonusLogs::BUSINESS_TYPE_LUCKY_DRAW => 'Lucky draw',
\App\Models\BonusLogs::BUSINESS_TYPE_EXCHANGE_DOWNLOAD => 'Exchange downloaded',
\App\Models\BonusLogs::BUSINESS_TYPE_BUY_TEMPORARY_INVITE => 'Buy temporary invite',
\App\Models\BonusLogs::BUSINESS_TYPE_BUY_RAINBOW_ID => 'Buy rainbow ID',
\App\Models\BonusLogs::BUSINESS_TYPE_BUY_CHANGE_USERNAME_CARD => 'Buy change username card',
\App\Models\BonusLogs::BUSINESS_TYPE_GIFT_MEDAL => 'Gift medal',
],
'fields' => [
'business_type' => 'Business type',
'old_total_value' => 'Pre-trade value',
'value' => 'Trade value',
'new_total_value' => 'Post-trade value',
],
];
+3
View File
@@ -36,6 +36,9 @@ return [
'anonymous' => 'Anonymous',
'infinite' => 'Infinite',
'save' => 'Save',
'country' => 'Country',
'city' => 'City',
'client' => 'Client',
'setting' => [
'nav_text' => 'Setting',
'backup' => [
+8
View File
@@ -31,4 +31,12 @@ return [
'subject' => 'Receive gift medal',
'body' => "User :username purchased a medal [:medal_name] at a cost of :cost_bonus and gave it to you. The medal is worth :price, the fee is :gift_fee_total(factor: :gift_fee_factor), you will have this medal until: :expire_at, and the medal's bonus addition factor is: :bonus_addition_factor.",
],
'login_notify' => [
'subject' => ':site_name Offsite login alert',
'body' => <<<BODY
You logged in at :this_login_time, IP::this_ip, location::this_location.
Last login time::last_login_time, IP::last_ip, location::last_location.
If it is not your own operation, the account password may have been leaked, please change it in time!
BODY,
],
];