feat : check
This commit is contained in:
@@ -49,7 +49,7 @@ class CouponAutoDispenseConsumer extends ConsumerMessage
|
||||
|
||||
$service->couponDispenseId = $data['coupon_dispense_id'];
|
||||
$service->userId = $data['user_id'];
|
||||
|
||||
$this->log->debug('data2:'.json_encode($data));
|
||||
$service->handle();
|
||||
|
||||
} catch (Exception $e) {
|
||||
|
||||
@@ -84,6 +84,7 @@ class AutoDispenseService
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
$this->log->debug('data3:'.$this->couponDispenseId);
|
||||
$dispenseInfo = $this->couponDispenseLogModel->getInfoById($this->couponDispenseId);
|
||||
if (empty($dispenseInfo)) throw new Exception('分发记录不存在');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user