refactor isSeedBox judgement

This commit is contained in:
xiaomlove
2025-05-11 02:33:22 +07:00
parent 6ff9d70ebc
commit 4b39d708d2
32 changed files with 1030 additions and 233 deletions
+1 -1
View File
@@ -278,7 +278,7 @@ return [
'ip' => 'IP(Block)',
'ip_begin' => 'Begin IP',
'ip_end' => 'End IP',
'ip_help' => 'Fill in the ASN/begin IP + end IP/IP (Block), only one of the three',
'ip_help' => 'Fill in the IP address or ASN, not both!',
'status' => 'Status',
'is_allowed' => 'Is whitelisted',
'is_allowed_help' => 'IPs in the whitelist are not affected by the SeedBox rule',
+1 -1
View File
@@ -14,6 +14,6 @@ return [
'subject' => 'SeedBox record status changed',
'body' => 'The status of your SeedBox record with ID :id was changed by :operator from :old_status to :new_status. Reason: :reason',
],
'is_seed_box_yes' => 'This IP is SeedBox, identified by the record with ID :id',
'is_seed_box_yes' => 'This IP is SeedBox',
'is_seed_box_no' => 'This IP is not SeedBox',
];
+2 -2
View File
@@ -281,10 +281,10 @@ return [
'type' => '添加类型',
'operator' => '运营商',
'bandwidth' => '带宽(Mbps)',
'ip' => 'IP(段)',
'ip' => 'IP',
'ip_begin' => '起始 IP',
'ip_end' => '结束 IP',
'ip_help' => '填写 ASN/起始 IP + 结束 IP/IP(段),不要同时填写',
'ip_help' => '填写IP地址或ASN,不要同时填写',
'status' => '状态',
'is_allowed' => '是否白名单',
'is_allowed_help' => '位于白名单中的 IP 不受 SeedBox 规则影响',
+2 -2
View File
@@ -14,6 +14,6 @@ return [
'subject' => 'SeedBox 记录状态变更',
'body' => '你的 ID 为 :id 的 SeedBox 记录状态被 :operator 由 :old_status 变更为 :new_status。原因::reason',
],
'is_seed_box_yes' => '此 IP 是 SeedBox, 由 ID 为 :id 的记录确定',
'is_seed_box_no' => '此 IP 不是 SeedBox',
'is_seed_box_yes' => "此 IP 是 SeedBox",
'is_seed_box_no' => "此 IP 不是 SeedBox",
];
+1 -1
View File
@@ -278,7 +278,7 @@ return [
'ip' => 'IP(段)',
'ip_begin' => '起始 IP',
'ip_end' => '結束 IP',
'ip_help' => '填寫ASN/起始 IP + 結束 IP/IP(段),不要同時填寫',
'ip_help' => '填寫IP地址或ASN,不要同時填寫',
'status' => '狀態',
'is_allowed' => '是否白名單',
'is_allowed_help' => '位於白名單中的 IP 不受 SeedBox 規則影響',
+1 -1
View File
@@ -14,6 +14,6 @@ return [
'subject' => 'SeedBox 記錄狀態變更',
'body' => '你的 ID 為 :id 的 SeedBox 記錄狀態被 :operator 由 :old_status 變更為 :new_status。原因::reason',
],
'is_seed_box_yes' => '此 IP 是 SeedBox, 由 ID 為 :id 的記錄確定',
'is_seed_box_yes' => '此 IP 是 SeedBox',
'is_seed_box_no' => '此 IP 不是 SeedBox',
];