| 
					
				 | 
			
			
				@@ -129,6 +129,8 @@ class User extends Api 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $extend = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                'plat_unique_id' => input('plat_unique_id',''), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                'plat_from'      => input('plat_from',''), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $ret = $this->auth->register('', '', '', $mobile, $extend); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -670,7 +672,7 @@ class User extends Api 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $data = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'plat_unique_id'  => $plat_unique_id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            'plat_from'  => $plat_from, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            'plat_from'       => $plat_from, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Db::name('user')->where('id',$this->auth->id)->update($data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $this->success(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -848,6 +850,8 @@ class User extends Api 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $extend = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 'wechat_openid' => $wechatCode['openid'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                'plat_unique_id' => input('plat_unique_id',''), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                'plat_from'      => input('plat_from',''), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $ret = $this->auth->register('', '','', $mobile, $extend); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 |