|
|
@@ -51,6 +51,11 @@ class ActivityLogic extends BaseLogic
|
|
|
array_multisort(array_column($res['activity_info']['block_data'], 'sort'), SORT_DESC, $res['activity_info']['block_data']);
|
|
|
foreach ($res['activity_info']['block_data'] as &$v){
|
|
|
array_multisort(array_column($v['goods'], 'recommend_weight'), SORT_DESC, $v['goods']);
|
|
|
+ if(!empty($v['goods'])){
|
|
|
+ foreach ($v['goods'] as &$item){
|
|
|
+ $item['service_fee'] = $item['base_service_fee'];
|
|
|
+ }
|
|
|
+ }
|
|
|
$v['goods'] = self::groupArrays($v['goods']);
|
|
|
}
|
|
|
$res['coupons'] = CouponRules::with(['couponCategoryOne'])->where('property_activity_id',$params['property_activity_id'])
|