|
|
|
@ -14,7 +14,7 @@ namespace App\Controller; |
|
|
|
use Hyperf\DbConnection\Db; |
|
|
|
use Hyperf\Redis\Redis; |
|
|
|
use Hyperf\Utils\ApplicationContext; |
|
|
|
use App\Service\CouponRebateInterface; |
|
|
|
use App\Service\CouponRebateServiceInterface; |
|
|
|
use http\Client\Curl\User; |
|
|
|
use Hyperf\Di\Annotation\Inject; |
|
|
|
use App\Model\Coupon; |
|
|
|
@ -24,11 +24,6 @@ use App\Request\CouponRebateReceiveRequest; |
|
|
|
use App\Service\CouponRebateService; |
|
|
|
class CouponRebateController extends BaseController |
|
|
|
{ |
|
|
|
/** |
|
|
|
* @Inject |
|
|
|
* @var CouponRebateInterface |
|
|
|
*/ |
|
|
|
protected $CouponRebate; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Inject |
|
|
|
@ -42,7 +37,7 @@ class CouponRebateController extends BaseController |
|
|
|
public function isCouponRebate() |
|
|
|
{ |
|
|
|
$user_id = $this->request->input('user_id', 0); |
|
|
|
$res = $this->CouponRebate->isCouponRebate($user_id); |
|
|
|
$res = $this->CouponRebateService->isCouponRebate($user_id); |
|
|
|
return $this->success($res); |
|
|
|
} |
|
|
|
|
|
|
|
@ -51,7 +46,7 @@ class CouponRebateController extends BaseController |
|
|
|
*/ |
|
|
|
public function getActiveInfo() |
|
|
|
{ |
|
|
|
$res = $this->CouponRebate->getActiveInfo(); |
|
|
|
$res = $this->CouponRebateService->getActiveInfo(); |
|
|
|
return $this->success($res); |
|
|
|
} |
|
|
|
|
|
|
|
|