|
|
@@ -87,7 +87,6 @@ class Goods extends Backend
|
|
|
$params[$this->dataLimitField] = $this->auth->id;
|
|
|
}
|
|
|
$params['price1']=$params['price'];
|
|
|
- $params['description'] = strtoupper(uniqid('G'));
|
|
|
|
|
|
$result = false;
|
|
|
Db::startTrans();
|
|
|
@@ -100,6 +99,7 @@ class Goods extends Backend
|
|
|
}
|
|
|
$result = $this->model->allowField(true)->insertGetId($params);
|
|
|
Db::commit();
|
|
|
+ $this->model->where(['id'=> $result])->update(['description'=> 'G'.$result]);
|
|
|
} catch (ValidateException $e) {
|
|
|
Db::rollback();
|
|
|
$this->error($e->getMessage());
|