修改原有框架中英文映射
This commit is contained in:
@@ -47,7 +47,7 @@ class BaseLogic extends AbstractLogic
|
||||
{
|
||||
$model = $this->model->findOrEmpty($id);
|
||||
if ($model->isEmpty()) {
|
||||
throw new ApiException('数据不存在');
|
||||
throw new ApiException('Data not found');
|
||||
}
|
||||
return $model->save($data);
|
||||
}
|
||||
@@ -61,7 +61,7 @@ class BaseLogic extends AbstractLogic
|
||||
{
|
||||
$model = $this->model->findOrEmpty($id);
|
||||
if ($model->isEmpty()) {
|
||||
throw new ApiException('数据不存在');
|
||||
throw new ApiException('Data not found');
|
||||
}
|
||||
return $model;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user