|
@@ -160,13 +160,14 @@ class Package extends Backend
|
|
|
$row->validateFailException()->validate($validate);
|
|
|
}
|
|
|
|
|
|
+ $oldrow = $row;
|
|
|
$fileName = md5($ids);
|
|
|
$fileUrl = '/uploads/package/'.$fileName.'.png';
|
|
|
$params['mini_code'] = $fileUrl;
|
|
|
$result = $row->allowField(true)->save($params);
|
|
|
Db::commit();
|
|
|
|
|
|
- $this->getMiniCode($ids,$row,$row['company_id']);
|
|
|
+ $this->getMiniCode($ids,$oldrow,$row['company_id']);
|
|
|
|
|
|
} catch (ValidateException|PDOException|Exception $e) {
|
|
|
Db::rollback();
|