设置默认的返补比例
This commit is contained in:
parent
8127f851f2
commit
452f052469
@ -82,10 +82,8 @@ class LocalStoreGoodsLogic extends Logic
|
||||
$data = LocalStoreGoods::with('pic')->where(['id' => $id])->find()->toArray();
|
||||
|
||||
$data['subsidy'] = [];
|
||||
if ($data['subsidy_id'] > 0) {
|
||||
$model = new GoodsSubsidy();
|
||||
$data['subsidy'] = $model->getSubsidyById($data['subsidy_id']);
|
||||
}
|
||||
$model = new GoodsSubsidy();
|
||||
$data['subsidy'] = $model->getSubsidyById($data['subsidy_id'] > 0 ? $data['subsidy_id'] : 4);
|
||||
|
||||
// 查找多规格
|
||||
if ($data['is_multiple_spec'] == 1) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user