mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 14:01:07 +00:00
【程序目录】优化机器翻译错误提示,增加机器翻译的默认key
This commit is contained in:
parent
27e3d0bad0
commit
706110423a
@ -149,6 +149,9 @@ class LangCodeServices extends BaseServices
|
||||
*/
|
||||
public function langCodeTranslate(string $text = ''): array
|
||||
{
|
||||
if (sys_config('hs_accesskey') == '' || sys_config('hs_secretkey') == '') {
|
||||
throw new AdminException('请先配置火山翻译key');
|
||||
}
|
||||
$translator = Translate::getInstance();
|
||||
$translator->setAccessKey(sys_config('hs_accesskey'));
|
||||
$translator->setSecretKey(sys_config('hs_secretkey'));
|
||||
|
||||
@ -33202,8 +33202,8 @@ INSERT INTO `eb_system_config` (`id`, `menu_name`, `type`, `input_type`, `config
|
||||
(415, 'pay_weixin_key_v3', 'text', 'input', 4, '', 1, '', 100, 0, '\"\"', 'V3支付Key', 'V3支付秘钥', 0, 1),
|
||||
(416, 'reward_money', 'text', 'number', 105, '', 1, '', 0, 0, '\"0\"', '赠送余额(元)', '新用户奖励金额,必须大于等于0,0为不赠送', 0, 1),
|
||||
(417, 'reward_integral', 'text', 'number', 105, '', 1, '', 0, 0, '\"0\"', '赠送积分', '新用户奖励积分,必须大于等于0,0为不赠送', 0, 1),
|
||||
(418, 'hs_accesskey', 'text', 'input', 106, '', 1, '', 0, 0, '\"\"', '火山翻译AccessKey', '机器翻译仅支持火山翻译', 1, 1),
|
||||
(419, 'hs_secretkey', 'text', 'input', 106, '', 1, '', 0, 0, '\"\"', '火山翻译SecretKey', '机器翻译仅支持火山翻译', 0, 1);
|
||||
(418, 'hs_accesskey', 'text', 'input', 106, '', 1, '', 0, 0, '\"AKLTMzkzZTEzNjg3OTg2NDViM2IwNmFlYzhmNzE4MmI4YmI\"', '火山翻译AccessKey', '机器翻译仅支持火山翻译', 1, 1),
|
||||
(419, 'hs_secretkey', 'text', 'input', 106, '', 1, '', 0, 0, '\"TVRneU16STFOVFV4WVRkbE5ERTJaV0pqWm1aaU1UaGlNVFppWldZeE1HUQ==\"', '火山翻译SecretKey', '机器翻译仅支持火山翻译', 0, 1);
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user