定版之后bug修改----礼物按价格排序。巡乐会。
This commit is contained in:
@@ -75,6 +75,10 @@ class BlindBox extends adminApi
|
|||||||
$lists[$key]['createtime'] = date('Y-m-d H:i:s', $value['createtime']);
|
$lists[$key]['createtime'] = date('Y-m-d H:i:s', $value['createtime']);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
//$lists 按gift_price 降序排序
|
||||||
|
usort($lists, function($a, $b) {
|
||||||
|
return $b['gift_price'] - $a['gift_price'];
|
||||||
|
});
|
||||||
//统计
|
//统计
|
||||||
$total_data = [];
|
$total_data = [];
|
||||||
//每期总次数
|
//每期总次数
|
||||||
|
|||||||
@@ -790,6 +790,11 @@ class BlindBoxTurntableGift extends Model
|
|||||||
'avatar' => $xlh_user['avatar'],
|
'avatar' => $xlh_user['avatar'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
//$gift_list 按gift_price 升序排序
|
||||||
|
usort($gift_list, function($a, $b) {
|
||||||
|
return $a['gift_price'] - $b['gift_price'];
|
||||||
|
});
|
||||||
|
|
||||||
$result_data = [
|
$result_data = [
|
||||||
'title' => $xlh_box['name'],
|
'title' => $xlh_box['name'],
|
||||||
'rule_url' => get_system_config_value('web_site')."/api/Page/get_gift_box_rule?box_id=".$xlh_box["id"],
|
'rule_url' => get_system_config_value('web_site')."/api/Page/get_gift_box_rule?box_id=".$xlh_box["id"],
|
||||||
|
|||||||
Reference in New Issue
Block a user