deploy: auto commit server changes 2026-06-12 18:38:59

This commit is contained in:
hajimi
2026-06-12 18:39:00 +08:00
parent 4509279ac7
commit 30d768a3e6
234 changed files with 414 additions and 261 deletions
@@ -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;
}
}
}