|
|
|
@ -11,18 +11,22 @@ declare(strict_types=1); |
|
|
|
*/ |
|
|
|
|
|
|
|
namespace App\Controller; |
|
|
|
|
|
|
|
use App\Model\CouponUserRecType; |
|
|
|
use App\Model\Coupon; |
|
|
|
use App\Model\CouponRec; |
|
|
|
use Hyperf\DbConnection\Db; |
|
|
|
use Hyperf\Redis\Redis; |
|
|
|
use Hyperf\Utils\ApplicationContext; |
|
|
|
|
|
|
|
use App\CouponRebate\CouponRebateInterface; |
|
|
|
use http\Client\Curl\User; |
|
|
|
use Hyperf\Di\Annotation\Inject; |
|
|
|
class CouponRebateController extends BaseController |
|
|
|
{ |
|
|
|
/** |
|
|
|
* @Inject |
|
|
|
* @var CouponRebateInterface |
|
|
|
*/ |
|
|
|
protected $CouponRebate; |
|
|
|
public function isCouponRebate() |
|
|
|
{ |
|
|
|
return $this->success('创建成功'); |
|
|
|
$res = $this->CouponRebate->isCouponRebate('测试数据'); |
|
|
|
return $this->success($res); |
|
|
|
} |
|
|
|
} |