修改原有框架中英文映射
This commit is contained in:
@@ -35,7 +35,7 @@ class SystemDictDataLogic extends BaseLogic
|
||||
{
|
||||
$type = SystemDictType::where('id', $data['type_id'])->findOrEmpty();
|
||||
if ($type->isEmpty()) {
|
||||
throw new ApiException('字典类型不存在');
|
||||
throw new ApiException('Dict type not found');
|
||||
}
|
||||
$data['code'] = $type->code;
|
||||
$model = $this->model->create($data);
|
||||
|
||||
Reference in New Issue
Block a user