| 
														
															@@ -38,6 +38,16 @@ class User extends Core 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if ($vip_config && isset($vip_config['button'])) { 
														 | 
														
														 | 
														
															             if ($vip_config && isset($vip_config['button'])) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 $this->data['user']['vip_state'] = $vip_config['button']; 
														 | 
														
														 | 
														
															                 $this->data['user']['vip_state'] = $vip_config['button']; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            $version_code = Dever::input('version_code'); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            if ($version_code) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                $source_type = Dever::input('source_type'); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                $version_where['source_type'] = $source_type; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                $version_where['code'] = $version_code; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                $version = Dever::db('main/version')->getOne($version_where); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                if ($version && $version['vip'] > 0) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    $this->data['user']['vip_state'] = $version['vip']; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															             $score = Dever::db('score/user')->all(array('uid' => $this->data['uid'])); 
														 | 
														
														 | 
														
															             $score = Dever::db('score/user')->all(array('uid' => $this->data['uid'])); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             $score_num = 0; 
														 | 
														
														 | 
														
															             $score_num = 0; 
														 |