setter
parent
25f5e11caa
commit
e9f4cfb6d1
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue