|
|
|
@ -7,7 +7,7 @@ use App\Controller\BaseController; |
|
|
|
use App\Exception\ErrorCodeException; |
|
|
|
use App\Request\v3\OrderOnlineDetailRequest; |
|
|
|
use App\Request\v3\OrderOnlineRequest; |
|
|
|
use App\Service\CouponServiceInterface; |
|
|
|
use App\Service\v3\Interfaces\CouponRecServiceInterface; |
|
|
|
use App\Service\v3\Interfaces\ShopCartServiceInterface; |
|
|
|
use Hyperf\Di\Annotation\Inject; |
|
|
|
use App\Service\v3\Interfaces\OrderOnlineServiceInterface; |
|
|
|
@ -25,9 +25,9 @@ class OrderOnlineController extends BaseController |
|
|
|
protected $userBindTelService; |
|
|
|
/** |
|
|
|
* @Inject |
|
|
|
* @var CouponServiceInterface |
|
|
|
* @var CouponRecServiceInterface |
|
|
|
*/ |
|
|
|
protected $couponService; |
|
|
|
protected $couponRecService; |
|
|
|
/** |
|
|
|
* @Inject |
|
|
|
* @var AppointmentTimeServiceInterface |
|
|
|
@ -70,7 +70,8 @@ class OrderOnlineController extends BaseController |
|
|
|
//
|
|
|
|
$res['store_list'] = $this->shopCartService->do(); |
|
|
|
//获取用户优惠券
|
|
|
|
$res['coupon'] = $this->couponService->getUserAvailableCoupons('',$params['user_id'],'',2,'',''); |
|
|
|
$res['coupon']['available'] = $this->couponRecService->allForOrderOlAvailable('181.02',$params['user_id'],'',1,'',''); |
|
|
|
$res['coupon']['not_available'] = $this->couponRecService->allForOrderOlAvailable('181.02',$params['user_id'],'',1,'',''); |
|
|
|
//获取配送费
|
|
|
|
$res['distribution_price'] = '5.0'; |
|
|
|
//增值服务接口
|
|
|
|
|