feat : check
This commit is contained in:
@@ -13,6 +13,7 @@ namespace App\Service\Admin\Coupon;
|
|||||||
use App\Amqp\Producer\CouponAutoDispenseProducer;
|
use App\Amqp\Producer\CouponAutoDispenseProducer;
|
||||||
use App\Constants\Common\CouponCode;
|
use App\Constants\Common\CouponCode;
|
||||||
use App\Exception\ErrException;
|
use App\Exception\ErrException;
|
||||||
|
use App\Lib\Log;
|
||||||
use App\Model\CouponDispenseLog;
|
use App\Model\CouponDispenseLog;
|
||||||
use App\Model\CouponDispenseUser;
|
use App\Model\CouponDispenseUser;
|
||||||
use App\Model\CouponTemplate;
|
use App\Model\CouponTemplate;
|
||||||
@@ -117,6 +118,12 @@ class DispenseAddService extends BaseService
|
|||||||
*/
|
*/
|
||||||
private int $itemCount;
|
private int $itemCount;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Log
|
||||||
|
*/
|
||||||
|
#[Inject]
|
||||||
|
protected Log $log;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array
|
* @return array
|
||||||
@@ -148,9 +155,14 @@ class DispenseAddService extends BaseService
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return void
|
* @return void
|
||||||
|
* @throws ContainerExceptionInterface
|
||||||
|
* @throws NotFoundExceptionInterface
|
||||||
*/
|
*/
|
||||||
private function sendAutoMq(): void
|
private function sendAutoMq(): void
|
||||||
{
|
{
|
||||||
|
$this->log->debug('user_id:'.json_encode($this->userIds));
|
||||||
|
$this->log->debug('claim_rule:'.$this->claimRule);
|
||||||
|
|
||||||
if ($this->claimRule != CouponCode::DISPENSE_CLAIM_RULE_POST_ACCOUNT) return;
|
if ($this->claimRule != CouponCode::DISPENSE_CLAIM_RULE_POST_ACCOUNT) return;
|
||||||
|
|
||||||
if (empty($this->userIds)) return;
|
if (empty($this->userIds)) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user