master
wangxinglong 2022-04-06 11:51:25 +08:00
parent 25f5e11caa
commit e9f4cfb6d1
1 changed files with 1 additions and 3 deletions

View File

@ -181,14 +181,12 @@ class Consumer extends Base
* */ * */
public function advertisement() public function advertisement()
{ {
$repo = OperationRepository::getInstance(); $repo = OperationRepository::getInstance();
$orders = ['sort'=>'asc']; $orders = ['sort'=>'asc'];
$page = input("page/d",1); $page = input("page/d",1);
$size = input("size/d",1000); $size = input("size/d",1000);
$couponId = input("coupon_id/d",0); $couponId = input("coupon_id/d",0);
$coupon = CouponRepository::getInstance()->findById($couponId, [], function ($q) { $coupon = CouponRepository::getInstance()->findById($couponId, [], function ($q) {
return $q->with([ return $q->with([
"business" => function ($q) { "business" => function ($q) {