fix - bug
This commit is contained in:
@ -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;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user