feat : check
This commit is contained in:
@@ -43,14 +43,13 @@ class CouponAutoDispenseConsumer extends ConsumerMessage
|
||||
$this->log->error('CouponAutoDispenseConsumer:error:NoData:'.json_encode($data));
|
||||
return Result::ACK;
|
||||
}
|
||||
$this->log->debug('data:'.json_encode($data));
|
||||
|
||||
try {
|
||||
$this->log->debug('data4:'.json_encode($data));
|
||||
$service = new AutoDispenseService();
|
||||
|
||||
$service->couponDispenseId = $data['coupon_dispense_id'];
|
||||
$service->userId = $data['user_id'];
|
||||
$this->log->debug('data2:'.json_encode($data));
|
||||
$service->couponDispenseId = (int)$data['coupon_dispense_id'];
|
||||
$service->userId = (int)$data['user_id'];
|
||||
|
||||
$service->handle();
|
||||
} catch (Exception $e) {
|
||||
$this->log->error('CouponAutoDispenseConsumer:error:'.$e->getMessage().':data:'.json_encode($data));
|
||||
|
||||
Reference in New Issue
Block a user