修改原有框架中英文映射

This commit is contained in:
2026-03-17 18:09:10 +08:00
parent e7b8f4cae9
commit bdf50e61f5
81 changed files with 1956 additions and 735 deletions

View File

@@ -61,9 +61,9 @@ class SystemConfigGroupController extends BaseController
$this->validate('save', $data);
$result = $this->logic->add($data);
if ($result) {
return $this->success('添加成功');
return $this->success('add success');
} else {
return $this->fail('添加失败');
return $this->fail('add failed');
}
}
@@ -80,9 +80,9 @@ class SystemConfigGroupController extends BaseController
$result = $this->logic->edit($data['id'], $data);
if ($result) {
ConfigCache::clearConfig($data['code']);
return $this->success('修改成功');
return $this->success('update success');
} else {
return $this->fail('修改失败');
return $this->fail('update failed');
}
}
@@ -96,13 +96,13 @@ class SystemConfigGroupController extends BaseController
{
$ids = $request->post('ids', '');
if (empty($ids)) {
return $this->fail('请选择要删除的数据');
return $this->fail('please select data to delete');
}
$result = $this->logic->destroy($ids);
if ($result) {
return $this->success('删除成功');
return $this->success('delete success');
} else {
return $this->fail('删除失败');
return $this->fail('delete failed');
}
}
@@ -116,7 +116,7 @@ class SystemConfigGroupController extends BaseController
{
$email = $request->input('email', '');
if (empty($email)) {
return $this->fail('请输入邮箱');
return $this->fail('please input email');
}
$subject = "测试邮件";
$code = "9527";
@@ -137,11 +137,11 @@ class SystemConfigGroupController extends BaseController
$model->status = 'failure';
$model->response = $result;
$model->save();
return $this->fail('发送失败,请查看日志');
return $this->fail('send failed, please check logs');
} else {
$model->status = 'success';
$model->save();
return $this->success([], '发送成功');
return $this->success([], 'send success');
}
} catch (\Exception $e) {
$model->status = 'failure';