Merge branch 'dev'

This commit is contained in:
2023-05-16 10:02:35 +08:00
4 changed files with 32 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace App\Factory;
use Hyperf\Cache\Cache;
use Hyperf\Cache\CacheManager;
class CacheFactory extends Cache
{
protected $driver;
public function __construct(CacheManager $manager)
{
parent::__construct($manager);
$this->driver = $manager->getDriver('prod');
}
}
+10
View File
@@ -0,0 +1,10 @@
<?php
namespace App\Factory;
use Hyperf\Redis\Redis;
class ProdRedisFactory extends Redis
{
protected string $poolName = 'prod';
}
+1
View File
@@ -344,6 +344,7 @@ class InquiryService extends BaseService
Db::commit();
} catch (\Exception $e) {
Db::rollBack();
Log::getInstance()->error("错误:" . $e->getMessage());
return fail(HttpEnumCode::HTTP_ERROR, $e->getMessage());
}