| 
					
				 | xqd
			
			
				@@ -65,8 +65,8 @@ class UserController extends BaseController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $user = Auth::guard('mini')->user(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if(!$user) return $this->error(['msg' => '找不到用户']); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if(Hash::check($request->input('new'), $user->password)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            $res = $user->update(['password' => bcrypt($user->password)]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(Hash::check($request->input('old'), $user->password)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $res = $user->update(['password' => bcrypt($request->input('new'))]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if($res) return $this->success(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return $this->error(['msg' => '原密码错误']); 
			 |