更新
This commit is contained in:
parent
76dc2f99dc
commit
d9c9c2e1c9
@ -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());
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user