541469799@qq.com пре 1 година
родитељ
комит
d736d28941

+ 1 - 1
app/index/controller/Captcha.php

@@ -61,7 +61,7 @@ class Captcha extends Controller
         if ($MailCaptchaService->handle($this->postForm())) {
             return $this->renderSuccess('Sent Successful!Please check your new mails.');
         }
-        return $this->renderError($MailCaptchaService->getError() ?: '短信发送失败');
+        return $this->renderError($MailCaptchaService->getError() ?: 'Failed to send code. Please try again later');
     }
 
     public function checkEmailCaptcha(): Json

+ 2 - 2
app/index/controller/Controller.php

@@ -89,13 +89,13 @@ class Controller extends BaseController
     {
         $client = getPlatform();
         $settingClass = [
-            'H5' => [\app\index\model\h5\Setting::class, 'checkStatus', 'H5']
+            'H5' => [\app\index\model\h5\Setting::class, 'checkStatus', 'H5']
         ];
         if (!isset($settingClass[$client])) {
             return;
         }
         $status = call_user_func([$settingClass[$client][0], $settingClass[$client][1]]);
-        $status === false && throwError('很抱歉,当前' . $settingClass[$client][2] . '端暂不支持访问');
+        $status === false && throwError('Sorry,' . $settingClass[$client][2] . ' not support');
     }
 
     /**

+ 1 - 1
cores/traits/ErrorTrait.php

@@ -28,7 +28,7 @@ trait ErrorTrait
      */
     protected function setError(string $error): bool
     {
-        $this->error = $error ?: '未知错误';
+        $this->error = $error ?: 'Unknown error';
         return false;
     }