fix - bug

This commit is contained in:
toom1996
2025-06-20 15:27:14 +08:00
parent b7fe1994f1
commit e25a4156c3
15 changed files with 112 additions and 286 deletions

View File

@ -13,8 +13,9 @@ namespace App\Model;
* @property \Carbon\Carbon $updated_at
* @property int $deleted_at
* @property int $is_delete
* @property int $queried_at
* @property int $platform
* @property string $ignore_url
* @property-read string $queried_at
*/
class AppKeywordsMonitor extends Model
{
@ -40,4 +41,11 @@ class AppKeywordsMonitor extends Model
}
return date('Y-m-d H:i:s', intval($value)) ?: '未查询';
}
function getIgnoreUrlAttribute($value)
{
return $this->format('ignore_url', function (bool $isFormat) use ($value) {
return $isFormat ? (($value && is_string($value)) ? json_decode($value, true) : []) : $value;
});
}
}