Browse Source

更新文言

luolongfei 3 years ago
parent
commit
bc695d06f7
2 changed files with 15 additions and 10 deletions
  1. 8 3
      libs/MessageServices/WeChat.php
  2. 7 7
      resources/lang/en.php

+ 8 - 3
libs/MessageServices/WeChat.php

@@ -152,14 +152,19 @@ class WeChat extends MessageGateway
     /**
      * 获取页脚
      *
+     * @param bool $isRenewalResult 是否续期结果,续期结果不用提醒调整推送频率
+     *
      * @return string
      */
-    public function getFooter()
+    public function getFooter(bool $isRenewalResult = false)
     {
         $footer = '';
 
         $footer .= lang('100116');
-        $footer .= lang('100117');
+
+        if (!$isRenewalResult) {
+            $footer .= lang('100117');
+        }
 
         return $footer;
     }
@@ -215,7 +220,7 @@ class WeChat extends MessageGateway
         $text .= lang('100124');
         $text .= $this->genDomainStatusText($domainStatus);
 
-        $text .= $this->getFooter();
+        $text .= $this->getFooter(true);
 
         return $text;
     }

+ 7 - 7
resources/lang/en.php

@@ -139,16 +139,16 @@ return [
         '100113' => 'Corporate WeChat access_token write failure: ',
         '100114' => 'Get Corporate WeChat access_token Failed: ',
         '100115' => 'No known reason',
-        '100116' => "\nFor more information, please refer to <a href=\"https://my.freenom.com/domains.php?a=renewals\">Freenom official website</a>",
-        '100117' => "\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)",
+        '100116' => "\nFor further information, please visit <a href=\"https://my.freenom.com/domains.php?a=renewals\">Freenom’s official website</a>",
+        '100117' => "\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.)",
         '100118' => "No data.\n",
         '100119' => '<a href="http://%s">%s</a> expires in <a href="http://%s">%d</a> days, ',
         '100120' => ".\n",
-        '100121' => "Account <a href=\"https://www.google.com\">%s</a> The results of this renewal are as follows\n\n",
-        '100122' => 'Renewal success: ',
-        '100123' => 'Renewal error: ',
-        '100124' => "\nThe domains that do not need to be renewed this time and their remaining days are shown below:\n\n",
-        '100125' => "I just checked for you and the account <a href=\"https://www.google.com\">%s</a> has no domains that need to be renewed today. The status of all domains is as follows:\n\n",
+        '100121' => "The following is the renewal report for the Freenom Account <a href=\"https://www.google.com\">%s</a>:\n\n",
+        '100122' => 'Renewal Success: ',
+        '100123' => 'Renewal Error: ',
+        '100124' => "\nIn addition, the following other domains' statuses are shown below:\n\n",
+        '100125' => "I've just checked and found that the Freenom account <a href=\"https://www.google.com\">%s</a> does not have any domains that need to be renewed today. The following is the current state of all domains:\n\n",
         '100126' => 'Corporate WeChat failed to send a message: <red>%s</red>',
         '100127' => 'Corporate WeChat interface did not return the expected data response, this response data is: ',
         '100128' => 'Multiple invalid access_token prompts have been detected, possibly because the access_token was not properly obtained, please intervene to investigate: ',