Sfoglia il codice sorgente

修正一处传参错误

luolongfei 1 anno fa
parent
commit
c2b977e372
4 ha cambiato i file con 9 aggiunte e 6 eliminazioni
  1. 4 1
      README.md
  2. 1 1
      app/Console/FreeNom.php
  3. 1 1
      app/Exceptions/LlfException.php
  4. 3 3
      app/helpers.php

+ 4 - 1
README.md

@@ -12,9 +12,12 @@
 Documentation: [English version](https://github.com/luolongfei/freenom/blob/main/README_EN.md) | 中文版
 </div>
 
-2024/02/07 Freenom 提供免费顶级域名的时代终结了,也不太可能会有替代品,江湖路远,有缘再见。更多消息可在热心网友的电报群内交流。
+<b>2024/02/07 Freenom 已被撤销域名相关执照,所有人的域名都被强制改为 peddling 状态,目前可以通过给 freenom 发邮件请求恢复域名,官方将帮你把域名续期到 9 年后,
+不过这个 9 年有可能只是暂时的,大概率后续会直接删域名,所以各位最好尽早使用付费域名替换之。江湖路远,后会有期。更多消息可在热心网友的电报群内交流。</b>
 [https://t.me/freenom_auto_renew](https://t.me/freenom_auto_renew)
 
+<b>On February 7, 2024, Freenom's domain-related licenses were revoked, and everyone's domains were forcibly changed to a peddling status. Currently, you can request to restore your domain by sending an email to Freenom. The official will help you renew your domain for 9 years. However, this 9-year period may only be temporary, and there is a high probability that the domain will be deleted later. Therefore, it is best for everyone to replace it with a paid domain as soon as possible. The road ahead is long, we will meet again. For more news, you can communicate in the Telegram group:</b> [https://t.me/freenom_auto_renew](https://t.me/freenom_auto_renew)
+
 如果你需要一台高性价比的服务器,可以参考 [美国便宜 VPS](https://go.llfapp.com/cc)
 
 [📢 公告](#-公告)

+ 1 - 1
app/Console/FreeNom.php

@@ -20,7 +20,7 @@ use GuzzleHttp\Cookie\SetCookie;
 
 class FreeNom extends Base
 {
-    const VERSION = 'v0.6.1';
+    const VERSION = 'v0.6.2';
 
     const TIMEOUT = 33;
 

+ 1 - 1
app/Exceptions/LlfException.php

@@ -19,7 +19,7 @@ class LlfException extends \Exception
             if (is_array($additional)) {
                 array_unshift($additional, $message);
                 $message = call_user_func_array('sprintf', $additional);
-            } else if (is_string($additional)) {
+            } else if (is_string($additional) || is_numeric($additional)) {
                 $message = sprintf($message, $additional);
             }
         }

+ 3 - 3
app/helpers.php

@@ -474,7 +474,7 @@ if (!function_exists('getAwsWafToken')) {
         if ($USE_OPEN_SOURCE_WAF_SOLVER_API === 1) {
             $OPEN_SOURCE_WAF_SOLVER_URL = \env('OPEN_SOURCE_WAF_SOLVER_URL');
             if (!$OPEN_SOURCE_WAF_SOLVER_URL) {
-                throw new LlfException('34520020');
+                throw new LlfException(34520020);
             }
             $OPEN_SOURCE_WAF_SOLVER_URL = rtrim($OPEN_SOURCE_WAF_SOLVER_URL, '/');
 
@@ -509,13 +509,13 @@ if (!function_exists('getAwsWafToken')) {
                 sleep($n > 5 ? 60 : 10); // 前 5 次每次休眠 10 秒,之后每次休眠 60 秒
             }
 
-            throw new LlfException(sprintf(lang('exception_msg.34520021'), $maxWaitSeconds));
+            throw new LlfException(34520021, $maxWaitSeconds);
         }
 
         // 使用自建接口获取
         $AWS_WAF_SOLVER_URL = \env('AWS_WAF_SOLVER_URL');
         if (!$AWS_WAF_SOLVER_URL) {
-            throw new LlfException('34520017');
+            throw new LlfException(34520017);
         }
         $AWS_WAF_SOLVER_URL = rtrim($AWS_WAF_SOLVER_URL, '/');