Browse Source

可用优惠券接口

master
Lemon 5 years ago
parent
commit
6aa253e705
  1. 2
      app/Controller/CouponController.php
  2. 2
      app/Service/CouponService.php
  3. 2
      app/Service/CouponServiceInterface.php

2
app/Controller/CouponController.php

@ -200,7 +200,7 @@ class CouponController extends BaseController
# 店铺类型id # 店铺类型id
$storetypeId = $this->request->input('storetype_id', 0); $storetypeId = $this->request->input('storetype_id', 0);
$res = $this->couponService->getUserAvailableCoupons($orderAmount,$userId,$marketId,$storetypeId);
$res = $this->couponService->getUserAvailableCoupons($orderAmount,$userId,$marketId,$type,$storetypeId);
return $this->success($res); return $this->success($res);
} }

2
app/Service/CouponService.php

@ -154,7 +154,7 @@ class CouponService implements CouponServiceInterface
* 获取用户当前订单可用的优惠券列表 * 获取用户当前订单可用的优惠券列表
* 按分类(1订单 等优惠)分组返回 * 按分类(1订单 等优惠)分组返回
*/ */
public function getUserAvailableCoupons($orderAmount,$userId,$marketId,$storetypeId)
public function getUserAvailableCoupons($orderAmount,$userId,$marketId,$type,$storetypeId)
{ {
$storetypeIds = explode(',', str_replace(',', ',', $storetypeId)); $storetypeIds = explode(',', str_replace(',', ',', $storetypeId));

2
app/Service/CouponServiceInterface.php

@ -13,7 +13,7 @@ interface CouponServiceInterface
public function getUserReceiveCouponList(); public function getUserReceiveCouponList();
public function getUserAvailableCoupons($orderAmount,$userId,$marketId,$storetypeId);
public function getUserAvailableCoupons($orderAmount,$userId,$marketId,$type,$storetypeId);
/** /**
* 当前订单可用优惠券列表 * 当前订单可用优惠券列表

Loading…
Cancel
Save