luolongfei 3 år sedan
förälder
incheckning
9e8ec6aa28
2 ändrade filer med 15 tillägg och 10 borttagningar
  1. 8 3
      libs/MessageServices/ServerChan.php
  2. 7 7
      resources/lang/en.php

+ 8 - 3
libs/MessageServices/ServerChan.php

@@ -60,14 +60,19 @@ class ServerChan extends MessageGateway
     /**
      * 获取 MarkDown 页脚
      *
+     * @param bool $isRenewalResult 是否续期结果,续期结果不用提醒调整推送频率
+     *
      * @return string
      */
-    public function getMarkDownFooter()
+    public function getMarkDownFooter(bool $isRenewalResult = false)
     {
         $footer = '';
 
         $footer .= lang('100091');
-        $footer .= lang('100092');
+
+        if (!$isRenewalResult) {
+            $footer .= lang('100092');
+        }
 
         return $footer;
     }
@@ -123,7 +128,7 @@ class ServerChan extends MessageGateway
         $text .= lang('100099');
         $text .= $this->genDomainStatusMarkDownText($domainStatus);
 
-        $text .= $this->getMarkDownFooter();
+        $text .= $this->getMarkDownFooter(true);
 
         return $text;
     }

+ 7 - 7
resources/lang/en.php

@@ -113,16 +113,16 @@ return [
         '100087' => "I've just checked and found that the Freenom account %s does not have any domains that need to be renewed today. The following is the current state of all domains:\n\n",
         '100088' => 'Unknown reason',
         '100089' => 'Bark Failed to send message: <red>%s</red>',
-        '100090' => "I just checked for you and the account [%s](#) does not have any domains that need to be renewed today. The status of all domains is as follows:\n\n",
-        '100091' => "\nFor more information, please refer to [Freenom official website](https://my.freenom.com/domains.php?a=renewals)",
-        '100092' => "\n\n(if you don't want to receive a push every time you execute, set the value of NOTICE_FREQ in .env to 0 so that the program only pushes when there is a renewal operation)",
+        '100090' => "I've just checked and found that the Freenom account [%s](#) does not have any domains that need to be renewed today. The following is the current state of all domains:\n\n",
+        '100091' => "\nFor more information, please visit [Freenom’s official website](https://my.freenom.com/domains.php?a=renewals)",
+        '100092' => "\n\n(If you don't want to get a push every time you execute, adjust the value of NOTICE_FREQ in the .env file to 0 so that the application only pushes when there is a renewal operation.)",
         '100093' => "No data.\n",
         '100094' => '[%s](http://%s) expires in *%d* days, ',
         '100095' => ".\n",
-        '100096' => "Account [%s](#) The results of this renewal are as follows\n\n",
-        '100097' => 'Renewal success: ',
-        '100098' => 'Renewal error: ',
-        '100099' => "\nThe domains that do not need to be renewed this time and their remaining days are shown below:\n\n",
+        '100096' => "The following is the renewal report for the Freenom Account [%s](#):\n\n",
+        '100097' => 'Renewal Success: ',
+        '100098' => 'Renewal Error: ',
+        '100099' => "\nIn addition, the following other domains' statuses are shown below:\n\n",
         '100100' => 'No known reason',
         '100101' => 'ServerChan Failed to send message: <red>%s</red>',
         '100102' => "I just checked for you and the account %s has no domains that need to be renewed today. The status of all domains is as follows:\n\n",