deploy: auto commit server changes 2026-06-12 18:38:59
This commit is contained in:
@@ -40,7 +40,7 @@ class CommunityCommentLogic extends BaseLogic
|
||||
}
|
||||
}
|
||||
|
||||
public static function delete(array $params)
|
||||
public static function delete(array $params): bool
|
||||
{
|
||||
Db::startTrans();
|
||||
try {
|
||||
@@ -64,9 +64,11 @@ class CommunityCommentLogic extends BaseLogic
|
||||
}
|
||||
}
|
||||
Db::commit();
|
||||
return true;
|
||||
} catch (\Throwable $e) {
|
||||
Db::rollback();
|
||||
self::setError($e->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user