| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -17,13 +17,11 @@ class Controller extends BaseController | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public function __construct() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					//    	Cache::put('wx0e8ebcd9ca9e4b97', 1);
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					//    	Cache::put('c4ca4238a0b923820dcc509a6f75849b', 1);
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							// TODO 登录部分待优化
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							$auth = request()->header('Authentication'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							$appid = request()->header('appid'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							//代理商和用户已经在中间件中检查过了,这里不再重复检查,也避免后台出错
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							//代理商和用户已经在ApiBase和ApiAuth中间件中检查过了,这里不再重复检查,也避免后台出错
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							if ($auth) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$this->user_id = Cache::get($auth); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							} | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |