| 
														
															@@ -31,7 +31,7 @@ class User extends Base 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         return $this->user; 
														 | 
														
														 | 
														
															         return $this->user; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    public function check() 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    public function checkLogin() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     { 
														 | 
														
														 | 
														
															     { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (!$this->user) { 
														 | 
														
														 | 
														
															         if (!$this->user) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             Dever::alert('请先登录', true); 
														 | 
														
														 | 
														
															             Dever::alert('请先登录', true); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -40,7 +40,7 @@ class User extends Base 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     public function updateInfo() 
														 | 
														
														 | 
														
															     public function updateInfo() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     { 
														 | 
														
														 | 
														
															     { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        $this->check(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        $this->checkLogin(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															         //$update['set_mobile'] = Dever::input('mobile'); 
														 | 
														
														 | 
														
															         //$update['set_mobile'] = Dever::input('mobile'); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         $update['set_username'] = Dever::input('username'); 
														 | 
														
														 | 
														
															         $update['set_username'] = Dever::input('username'); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -59,7 +59,7 @@ class User extends Base 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     public function updateAvatar() 
														 | 
														
														 | 
														
															     public function updateAvatar() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     { 
														 | 
														
														 | 
														
															     { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        $this->check(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        $this->checkLogin(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															         $update['set_avatar'] = Dever::input('avatar') ? Dever::input('avatar') . '?v=' . time() : false; 
														 | 
														
														 | 
														
															         $update['set_avatar'] = Dever::input('avatar') ? Dever::input('avatar') . '?v=' . time() : false; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         $update['where_id'] = $this->user['id']; 
														 | 
														
														 | 
														
															         $update['where_id'] = $this->user['id']; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -77,7 +77,7 @@ class User extends Base 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     public function updateWeixin() 
														 | 
														
														 | 
														
															     public function updateWeixin() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     { 
														 | 
														
														 | 
														
															     { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        $this->check(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        $this->checkLogin(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															         Dever::load('passport/user-update', array('where_id' => $this->user['id'], 'set_weixin' => 1)); 
														 | 
														
														 | 
														
															         Dever::load('passport/user-update', array('where_id' => $this->user['id'], 'set_weixin' => 1)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 |