|
@@ -129,7 +129,11 @@ class CustomController extends BaseController
|
|
|
$where['name'] = ['like', $name];
|
|
$where['name'] = ['like', $name];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- $list = CustomService::getCustomList($where);
|
|
|
|
|
|
|
+ if ($type == 2) {
|
|
|
|
|
+ $list = CustomService::getCustomOrderList($where, 'buyAmount DESC');
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $list = CustomService::getCustomList($where);
|
|
|
|
|
+ }
|
|
|
$shop = $this->shop;
|
|
$shop = $this->shop;
|
|
|
$list['totalUser'] = $shop->totalUser ?? 0;
|
|
$list['totalUser'] = $shop->totalUser ?? 0;
|
|
|
$list['mayGatheringNum'] = $shop->mayGatheringNum ?? 0;
|
|
$list['mayGatheringNum'] = $shop->mayGatheringNum ?? 0;
|