阶段更新
This commit is contained in:
51
src/Action/CouponAction.php
Normal file
51
src/Action/CouponAction.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace XuanChen\WashCar\Action;
|
||||
|
||||
class UrlAction extends Init
|
||||
{
|
||||
|
||||
/**
|
||||
* Notes: 发券
|
||||
* @Author: 玄尘
|
||||
* @Date : 2021/6/4 14:26
|
||||
*/
|
||||
public function grant()
|
||||
{
|
||||
$url = $this->config['baseUri'] . '/v2/rights/coupon/getCoupon';
|
||||
|
||||
$res = $this->http($url, $this->params);
|
||||
dd($res);
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes: 查询
|
||||
* @Author: 玄尘
|
||||
* @Date : 2021/6/4 14:28
|
||||
*/
|
||||
public function query()
|
||||
{
|
||||
$url = $this->config['baseUri'] . '/v2/rights/coupon/getCouponStatus';
|
||||
|
||||
$this->http($url, $this->params);
|
||||
|
||||
return $this->getResponse();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes: 取消优惠券
|
||||
* @Author: 玄尘
|
||||
* @Date : 2021/6/4 14:29
|
||||
*/
|
||||
public function cancel()
|
||||
{
|
||||
$url = $this->config['baseUri'] . '/v2/rights/coupon/recedeCoupon';
|
||||
|
||||
$this->http($url, $this->params);
|
||||
|
||||
return $this->getResponse();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user