商品详情添加获取商品返补比例
This commit is contained in:
parent
e8ae7e4f9a
commit
1a97a8ed81
@ -6,6 +6,7 @@ namespace app\api\logic;
|
||||
use app\common\model\distribution\Distribution;
|
||||
use app\common\model\distribution\DistributionLevel;
|
||||
use app\common\model\goods\GoodsCategory;
|
||||
use app\common\model\goods\GoodsSubsidy;
|
||||
use app\common\model\order\Order;
|
||||
use app\common\model\procurement\Mprocurement;
|
||||
use app\common\model\procurement\Procurementset;
|
||||
@ -78,10 +79,8 @@ class GoodsLogic extends Logic
|
||||
|
||||
Db::startTrans();
|
||||
try{
|
||||
// // 获取返补比例
|
||||
// if ($goodsDetail['subsidy_id'] == 0) {
|
||||
// // 获取
|
||||
// }
|
||||
// 获取返补比例, subsidy_id为0的就传递一个ID为4的固定ID
|
||||
$subsidy = (new GoodsSubsidy())->getSubsidyById($goodsDetail['subsidy_id'] > 0 ?? 4);
|
||||
|
||||
// 轮播图加域名
|
||||
foreach($goodsDetail['goods_image'] as &$item) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user