This commit is contained in:
shengchanzhe 2023-12-22 09:46:49 +08:00
parent 76dc2f99dc
commit d9c9c2e1c9
2 changed files with 3 additions and 1 deletions

View File

@ -426,7 +426,7 @@ class SpuRepository extends BaseRepository
if ($status == 1 && in_array($productType, [0, 98, 99])) {
Queue(SendSmsJob::class, ['tempId' => 'PRODUCT_INCREASE', 'id' => $id]);
}
if (in_array($productType, [0, 98, 99])) Queue::push(SyncProductTopJob::class,[]);
// if (in_array($productType, [0, 98, 99])) Queue::push(SyncProductTopJob::class,[]);
return true;
} catch (\Exception $exception) {
Log::info($exception->getMessage());

View File

@ -27,6 +27,8 @@ class SendSmsJob implements JobInterface
public function fire($job, $data)
{
$backtrace = debug_backtrace();
Log::info("函数SendSmsJob被". $backtrace[1]['function'] . "调用\n");
$status = app()->make(SystemNoticeConfigRepository::class)->getNoticeStatusByConstKey($data['tempId']);
if (!$status) {
$job->delete();