mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 03:52:50 +00:00
fix:修复报错信息
This commit is contained in:
parent
eea9d1f3ce
commit
14595d3a60
@ -235,11 +235,10 @@ class AbstractModel extends Model
|
||||
} catch (\Throwable $eb) {
|
||||
info($eb);
|
||||
}
|
||||
info($e);
|
||||
if ($e instanceof ApiException) {
|
||||
throw new ApiException( config('app.debug') ? $e->getMessage() : '处理错误', $e->getData(), $e->getCode());
|
||||
throw new ApiException( $e->getMessage() , $e->getData(), $e->getCode());
|
||||
} else {
|
||||
throw new ApiException( config('app.debug') ? ($e->getMessage() ?: '处理错误') : '处理错误');
|
||||
throw new ApiException( $e->getMessage() ?: '处理错误');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user