Skip to content

Commit

Permalink
fix 缓存错误处理
Browse files Browse the repository at this point in the history
  • Loading branch information
zds-s committed Dec 23, 2023
1 parent 89123af commit d7bb21e
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 62 deletions.
2 changes: 1 addition & 1 deletion app/Setting/Model/SettingConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ class SettingConfig extends MineModel
/**
* The attributes that should be cast to native types.
*/
protected array $casts = ['group_id' => 'integer', 'sort' => 'integer'];
protected array $casts = ['group_id' => 'integer', 'sort' => 'integer','config_select_data'=>'array'];
}
2 changes: 1 addition & 1 deletion app/System/Service/SystemDictDataService.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function getLists(?array $params = null): array
/**
* 查询一个字典.
*/
#[Cacheable(prefix: 'system:dict:data', ttl: 600, listener: 'system-dict-update')]
#[Cacheable(prefix: 'system:dict:data', ttl: 600, listener: 'system-dict-update',value: 'value')]
public function getList(?array $params = null, bool $isScope = false): array
{
$args = [
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
"license": "Apache-2.0",
"require": {
"xmo/jwt-auth": "2.0.0-alpha.2",
"xmo/mine-core": "2.0.0-alpha.2",
"xmo/mine-core": "2.0.0-alpha.3",
"xmo/mine-helpers": "2.0.0-alpha.2",
"xmo/mine-office": "2.0.0-alpha.2",
"xmo/mine-translatable": "2.0.0-alpha.2",
"xmo/mine-generator": "2.0.0-alpha.2"
"xmo/mine-generator": "2.0.0-alpha.2",
"xmo/mine-service": "2.0.0-alpha.3"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
Expand Down
Loading

0 comments on commit d7bb21e

Please sign in to comment.