diff --git a/app/api/logic/LocalStoreLogic.php b/app/api/logic/LocalStoreLogic.php index 0bc1d7f6..516a6048 100644 --- a/app/api/logic/LocalStoreLogic.php +++ b/app/api/logic/LocalStoreLogic.php @@ -3,6 +3,7 @@ namespace app\api\logic; use app\common\basics\Logic; +use app\common\model\goods\GoodsSubsidy; use app\common\model\LocalStore; use app\common\model\localstore\LocalGoodsStore; use app\common\model\localstore\LocalStoreBind; @@ -158,6 +159,10 @@ class LocalStoreLogic extends Logic ->select(); foreach ($lists as $key => &$value) { + // 获取返补比例, subsidy_id为0的就传递一个ID为4的固定ID + $lists[$key]['subsidy'] = (new GoodsSubsidy())->getSubsidyById($value['subsidy_id'] > 0 ? $value['subsidy_id'] : 4); + $lists[$key]['subsidy_txt'] = '最高返' . $lists[$key]['subsidy']['subsidy']; + // 东龙汇超时价格 *88折 if ($value['lstore_id'] == Config::get('localstore.dlh_lstore_id')) { // $lists[$key]['original_price'] = $value['price'];