更新首字母

This commit is contained in:
2025-05-30 14:19:28 +08:00
parent 628892dde6
commit 02ee7fda9c
2 changed files with 20 additions and 0 deletions
@@ -128,6 +128,9 @@ class VehicleNewService extends BaseService
Db::beginTransaction();
try {
if(empty($params['model'])){
$params['model'] = 0;
}
$info = $this->create($params);
if (!$info) {
throw new BusinessException('提交失败');
@@ -253,6 +256,9 @@ class VehicleNewService extends BaseService
Db::beginTransaction();
try {
if(empty($params['model'])){
$params['model'] = 0;
}
$info = $this->update($id, $params);
if (!$info) {
throw new BusinessException('提交失败');