更改:测试环境debug用户id
This commit is contained in:
		
							parent
							
								
									2e6544031d
								
							
						
					
					
						commit
						cadafb6fe0
					
				| 
						 | 
					@ -356,7 +356,7 @@ class ApplicationController < ActionController::Base
 | 
				
			||||||
					User.current = User.find 8686
 | 
										User.current = User.find 8686
 | 
				
			||||||
				elsif params[:debug] == 'admin'
 | 
									elsif params[:debug] == 'admin'
 | 
				
			||||||
					logger.info "@@@@@@@@@@@@@@@@@@@@@@ debug mode....."
 | 
										logger.info "@@@@@@@@@@@@@@@@@@@@@@ debug mode....."
 | 
				
			||||||
					user =  User.find 1
 | 
										user =  User.find 36480
 | 
				
			||||||
					User.current = user
 | 
										User.current = user
 | 
				
			||||||
					cookies.signed[:user_id] = user.id
 | 
										cookies.signed[:user_id] = user.id
 | 
				
			||||||
				end
 | 
									end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue