..
This commit is contained in:
@@ -157,9 +157,9 @@ abstract class AetherModel extends HyperfModel implements CacheableInterface
|
||||
/**
|
||||
* 快捷更新.
|
||||
*/
|
||||
public static function updateById(int $id, array $data): bool
|
||||
public static function updateById(int $id, array $data): int
|
||||
{
|
||||
return static::query()->where('id', $id)->update($data) > 0;
|
||||
return static::query()->where('id', $id)->update($data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,7 +19,7 @@ class RpcExceptionHandler extends ExceptionHandler
|
||||
/**
|
||||
*/
|
||||
public function handle(Throwable $throwable, ResponseInterface $response): ResponseInterface
|
||||
{
|
||||
{var_dump($throwable->getMessage());
|
||||
try {
|
||||
// 获取请求ID(用于日志追踪)
|
||||
$requestId = Context::get('request_id', '');
|
||||
|
||||
Reference in New Issue
Block a user