Compare commits

..

No commits in common. "74b7a561abc47495dec341ebe2cbfcea9b8928a5" and "469ebf813ce45ec1773b482089362936d4d76d90" have entirely different histories.

3 changed files with 558 additions and 689 deletions

View File

@ -61,12 +61,21 @@ public function handle(): void
{
Log::info('===========================开始执行type' . $this->type . ' 的队列============================');
try {
match ($this->type) {
1 => $this->addGoods(),
2 => $this->updateGoods(),
3 => $this->changeProductState(),
4, 5 => $this->changePrice(),
};
switch ($this->type) {
case 1:
$this->addGoods();
break;
case 2:
$this->updateGoods();
break;
case 3:
$this->changeProductState();
break;
case 4:
case 5:
$this->changePrice();
break;
}
Log::info('===========================执行完成================================');
} catch (Throwable $throwable) {
$this->fail($throwable);

View File

@ -7,8 +7,8 @@
"require": {
"php": "^8.1",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^11.0",
"laravel/sanctum": "^4.0",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.3",
"laravel/tinker": "^2.8"
},
"require-dev": {
@ -17,7 +17,7 @@
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^8.1",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},

1220
composer.lock generated

File diff suppressed because it is too large Load Diff