Merge branch 'develop'

This commit is contained in:
mzl
2025-09-24 19:12:13 +08:00
parent 04208b3b5c
commit b897771541
31 changed files with 5899 additions and 895 deletions
+5 -1
View File
@@ -192,7 +192,11 @@ class CrudUtil
*/
public static function findOneBy(Builder $q): Model
{
return $q->first();
$model = $q->first();
if (!$model) {
throw new BusinessException("记录不存在", 404);
}
return $model;
}
/**