| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -12,7 +12,13 @@ class UserChannel extends BaseModel | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    use HasFactory; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    // 获取时需要转换,写入时框架可自动将数组转换后保存
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						public function __construct(array $attributes = []) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							parent::__construct($attributes); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							$this->timestamps = false; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						// 获取时需要转换,写入时框架可自动将数组转换后保存
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public function getChannelsAttribute($value) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return json_decode($value, true); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |