更新首字母
This commit is contained in:
@@ -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('提交失败');
|
||||
|
||||
Reference in New Issue
Block a user