添加商品返补比例设置
This commit is contained in:
parent
69f32edab2
commit
e5e831acde
@ -226,7 +226,8 @@ class LocalStoreGoodsLogic extends Logic
|
||||
'audit_status' => $get['audit_status']
|
||||
])->find();
|
||||
|
||||
if ($data) {
|
||||
if (!empty($data)) {
|
||||
$data = $data->toArray();
|
||||
$model = new GoodsSubsidy();
|
||||
$data['subsidy'] = $model->getSubsidyById($data['subsidy_id'] > 0 ? $data['subsidy_id'] : 4);
|
||||
|
||||
@ -252,8 +253,7 @@ class LocalStoreGoodsLogic extends Logic
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
return false;
|
||||
return [];
|
||||
}
|
||||
|
||||
// 获取商品详情
|
||||
|
||||
Loading…
Reference in New Issue
Block a user