temporary invite

This commit is contained in:
xiaomlove
2022-12-13 13:51:39 +08:00
parent 6fa604ce56
commit f413c61901
42 changed files with 727 additions and 47 deletions
+3
View File
@@ -32,6 +32,7 @@ return [
'category' => 'Categories',
'second_icon' => 'Second icons',
'torrent_operation_log' => 'Torrent operation logs',
'invite' => 'Invites',
],
'resources' => [
'agent_allow' => [
@@ -76,6 +77,8 @@ return [
'grant_prop_form_duration' => 'Duration',
'grant_prop_form_duration_help' => 'Unit: days. If left blank, the user has it permanently. Note: There is no time limit for Name Change Card, ignore this value.' ,
'confirm_bulk' => 'Bulk confirm',
'change_bonus_etc_duration_label' => 'Duration',
'change_bonus_etc_duration_help' => 'Required when adding temporary invitation, in days',
]
],
'exam_user' => [
+16
View File
@@ -2,4 +2,20 @@
return [
'invalid_inviter' => 'Invalid inviter! The invite code is banned!',
'fields' => [
'inviter' => 'Sender',
'invitee' => 'Receive email',
'time_invited' => 'Send time',
'valid' => 'Valid',
'invitee_register_uid' => 'Registered UID',
'invitee_register_email' => 'Registered email',
'invitee_register_username' => 'Registered username',
'expired_at' => 'hash expired at',
],
'send_deny_reasons' => [
'invite_system_closed' => 'Invite system is closed',
'no_permission' => 'Require :class or above to send invitations',
'invite_not_enough' => 'Invites not enough',
],
'send_allow_text' => 'Invite someone',
];
+1
View File
@@ -102,6 +102,7 @@ return [
'downloadpos' => 'Download privileges',
'parked' => 'Parked',
'offer_allowed_count' => 'Offer allowed count',
'tmp_invites' => 'Temporary invite',
],
'medal' => [
'label' => 'Medal',
+4
View File
@@ -23,4 +23,8 @@ return [
'subject' => 'Download permission restored',
'body' => 'Your download privileges restored, you can now download torrents. By: :operator',
],
'temporary_invite_change' => [
'subject' => 'Temporary invite :change_type',
'body' => 'Your temporary invite count had :change_type :count by :operator, reason: :reason.',
],
];
+2
View File
@@ -10,4 +10,6 @@ return [
],
'select_all' => 'Select all',
'unselect_all' => 'Unselect all',
'increment' => 'increment',
'decrement' => 'decrement',
];
+3
View File
@@ -30,6 +30,7 @@ return [
'category' => '主分类',
'second_icon' => '第二图标',
'torrent_operation_log' => '种子操作记录',
'invite' => '用户邀请',
],
'resources' => [
'agent_allow' => [
@@ -74,6 +75,8 @@ return [
'grant_prop_form_duration' => '有效时长',
'grant_prop_form_duration_help' => '单位:天。如果留空,用户永久拥有。注:改名卡没有时间限制,忽略该值。',
'confirm_bulk' => '批量确认',
'change_bonus_etc_duration_label' => '有效期',
'change_bonus_etc_duration_help' => '增加临时邀请时必须,单位:天',
]
],
'exam_user' => [
+16
View File
@@ -2,4 +2,20 @@
return [
'invalid_inviter' => '非法邀请者!此邀请码已被禁用!',
'fields' => [
'inviter' => '发邀者',
'invitee' => '接收邮箱',
'time_invited' => '发邀时间',
'valid' => '是否有效',
'invitee_register_uid' => '注册用户 UID',
'invitee_register_email' => '注册用户邮箱',
'invitee_register_username' => '注册用户名',
'expired_at' => 'hash 过期时间',
],
'send_deny_reasons' => [
'invite_system_closed' => '邀请系统已关闭',
'no_permission' => ':class 或以上等级才可以发送邀请',
'invite_not_enough' => '邀请数量不足',
],
'send_allow_text' => '邀请其他人',
];
+1
View File
@@ -102,6 +102,7 @@ return [
'downloadpos' => '下载权限',
'parked' => '挂起',
'offer_allowed_count' => '候选通过数',
'tmp_invites' => '临时邀请',
],
'medal' => [
'label' => '勋章',
+4
View File
@@ -23,4 +23,8 @@ return [
'subject' => '下载权限恢复',
'body' => '你的下载权限恢复,你现在可以下载种子。By: :operator',
],
'temporary_invite_change' => [
'subject' => '临时邀请:change_type',
'body' => '你的临时邀请被管理员 :operator :change_type :count 个,理由::reason。',
],
];
+2
View File
@@ -10,4 +10,6 @@ return [
],
'select_all' => '全选',
'unselect_all' => '全不选',
'increment' => '增加',
'decrement' => '减少',
];
+3
View File
@@ -32,6 +32,7 @@ return [
'category' => '主分類',
'second_icon' => '第二圖標',
'torrent_operation_log' => '種子操作記錄',
'invite' => '用戶邀請',
],
'resources' => [
'agent_allow' => [
@@ -76,6 +77,8 @@ return [
'grant_prop_form_duration' => '有效時長',
'grant_prop_form_duration_help' => '單位:天。如果留空,用戶永久擁有。註:改名卡沒有時間限製,忽略該值。',
'confirm_bulk' => '批量確認',
'change_bonus_etc_duration_label' => '有效期',
'change_bonus_etc_duration_help' => '增加臨時邀請時必須,單位:天',
]
],
'exam_user' => [
+16
View File
@@ -2,4 +2,20 @@
return [
'invalid_inviter' => '非法邀請者!此邀請碼已被禁用!',
'fields' => [
'inviter' => '發邀者',
'invitee' => '接收郵箱',
'time_invited' => '發邀時間',
'valid' => '是否有效',
'invitee_register_uid' => '註冊用戶 UID',
'invitee_register_email' => '註冊用戶郵箱',
'invitee_register_username' => '註冊用戶名',
'expired_at' => 'hash 過期時間',
],
'send_deny_reasons' => [
'invite_system_closed' => '邀請系統已關閉',
'no_permission' => ':class 或以上等級才可以發送邀請',
'invite_not_enough' => '邀請數量不足',
],
'send_allow_text' => '邀請其他人',
];
+1
View File
@@ -102,6 +102,7 @@ return [
'downloadpos' => '下載權限',
'parked' => '掛起',
'offer_allowed_count' => '候選通過數',
'tmp_invites' => '臨時邀請',
],
'medal' => [
'label' => '勛章',
+4
View File
@@ -22,4 +22,8 @@ return [
'subject' => '下載權限恢復',
'body' => '你的下載權限恢復,你現在可以下載種子。By: :operator',
],
'temporary_invite_change' => [
'subject' => '臨時邀請:change_type',
'body' => '你的臨時邀請被管理員 :operator :change_type :count 個,理由::reason。',
],
];
+2
View File
@@ -10,4 +10,6 @@ return [
],
'select_all' => '全選',
'unselect_all' => '全不選',
'increment' => '增加',
'decrement' => '減少',
];
@@ -87,7 +87,7 @@
</tr>
<tr>
<th>{{ __('label.user.invites') }}</th>
<td>{{$record->invites}}</td>
<td>{{sprintf('%s(%s)', $record->invites, $temporary_invite_count)}}</td>
<td></td>
</tr>
<tr>