Compare commits
2 Commits
469ebf813c
...
74b7a561ab
Author | SHA1 | Date | |
---|---|---|---|
74b7a561ab | |||
10945ef56e |
|
@ -61,21 +61,12 @@ public function handle(): void
|
||||||
{
|
{
|
||||||
Log::info('===========================开始执行type' . $this->type . ' 的队列============================');
|
Log::info('===========================开始执行type' . $this->type . ' 的队列============================');
|
||||||
try {
|
try {
|
||||||
switch ($this->type) {
|
match ($this->type) {
|
||||||
case 1:
|
1 => $this->addGoods(),
|
||||||
$this->addGoods();
|
2 => $this->updateGoods(),
|
||||||
break;
|
3 => $this->changeProductState(),
|
||||||
case 2:
|
4, 5 => $this->changePrice(),
|
||||||
$this->updateGoods();
|
};
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
$this->changeProductState();
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
case 5:
|
|
||||||
$this->changePrice();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
Log::info('===========================执行完成================================');
|
Log::info('===========================执行完成================================');
|
||||||
} catch (Throwable $throwable) {
|
} catch (Throwable $throwable) {
|
||||||
$this->fail($throwable);
|
$this->fail($throwable);
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.1",
|
"php": "^8.1",
|
||||||
"guzzlehttp/guzzle": "^7.2",
|
"guzzlehttp/guzzle": "^7.2",
|
||||||
"laravel/framework": "^10.10",
|
"laravel/framework": "^11.0",
|
||||||
"laravel/sanctum": "^3.3",
|
"laravel/sanctum": "^4.0",
|
||||||
"laravel/tinker": "^2.8"
|
"laravel/tinker": "^2.8"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
"laravel/pint": "^1.0",
|
"laravel/pint": "^1.0",
|
||||||
"laravel/sail": "^1.18",
|
"laravel/sail": "^1.18",
|
||||||
"mockery/mockery": "^1.4.4",
|
"mockery/mockery": "^1.4.4",
|
||||||
"nunomaduro/collision": "^7.0",
|
"nunomaduro/collision": "^8.1",
|
||||||
"phpunit/phpunit": "^10.1",
|
"phpunit/phpunit": "^10.1",
|
||||||
"spatie/laravel-ignition": "^2.0"
|
"spatie/laravel-ignition": "^2.0"
|
||||||
},
|
},
|
||||||
|
|
1228
composer.lock
generated
1228
composer.lock
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user