阶段更新

This commit is contained in:
2021-06-04 14:53:29 +08:00
parent 12f5f71817
commit 25ff64defe
8 changed files with 273 additions and 60 deletions

View 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();
}
}