|
|
@@ -48,6 +48,10 @@ class ActivityLogic extends BaseLogic
|
|
|
}
|
|
|
}
|
|
|
$res['activity_info'] = $propertyActivity->toArray();
|
|
|
+ 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']);
|
|
|
+ }
|
|
|
$res['coupons'] = CouponRules::with(['couponCategoryOne'])->where('property_activity_id',$params['property_activity_id'])
|
|
|
->select()
|
|
|
->toArray();
|