本地生活商品详情显示默认的返补比例
This commit is contained in:
parent
452f052469
commit
6ebc4c7496
@ -81,7 +81,6 @@ class LocalStoreGoodsLogic extends Logic
|
||||
{
|
||||
$data = LocalStoreGoods::with('pic')->where(['id' => $id])->find()->toArray();
|
||||
|
||||
$data['subsidy'] = [];
|
||||
$model = new GoodsSubsidy();
|
||||
$data['subsidy'] = $model->getSubsidyById($data['subsidy_id'] > 0 ? $data['subsidy_id'] : 4);
|
||||
|
||||
|
||||
@ -220,11 +220,8 @@ class LocalStoreGoodsLogic extends Logic
|
||||
'audit_status' => $get['audit_status']
|
||||
])->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