| 
					
				 | 
			
			
				@@ -126,15 +126,18 @@ class Usercenter extends Api 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $userinfo['last_dongtai'] = $last_dongtai; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //礼物墙 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        $gift_wall = Db::name('gift_user_typing')->alias('log') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ->join('gift', 'gift.id = log.gift_id', 'LEFT') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ->field('log.id,log.gift_name,sum(log.number) as number,gift.image') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ->where(['log.user_to_id' => $uid]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ->group('log.gift_id') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ->order('gift.price desc') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ->select(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        $gift_wall = list_domain_image($gift_wall,['image']); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        $userinfo['gift_wall'] = $gift_wall; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $userinfo['gift_wall'] = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if($this->user_power($uid,'giftwall')==1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $gift_wall = Db::name('gift_user_typing')->alias('log') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ->join('gift', 'gift.id = log.gift_id', 'LEFT') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ->field('log.id,log.gift_name,sum(log.number) as number,gift.image') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ->where(['log.user_to_id' => $uid]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ->group('log.gift_id') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ->order('gift.price desc') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ->select(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $gift_wall = list_domain_image($gift_wall,['image']); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $userinfo['gift_wall'] = $gift_wall; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $this->success('success',$userinfo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -228,15 +231,18 @@ class Usercenter extends Api 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $userinfo['last_dongtai'] = $last_dongtai; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //礼物墙 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        $gift_wall = Db::name('gift_user_typing')->alias('log') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ->join('gift', 'gift.id = log.gift_id', 'LEFT') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ->field('log.id,log.gift_name,sum(log.number) as number,gift.image') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ->where(['log.user_to_id' => $uid]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ->group('log.gift_id') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ->order('gift.price desc') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ->select(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        $gift_wall = list_domain_image($gift_wall,['image']); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        $userinfo['gift_wall'] = $gift_wall; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $userinfo['gift_wall'] = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if($this->user_power($uid,'giftwall')==1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $gift_wall = Db::name('gift_user_typing')->alias('log') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ->join('gift', 'gift.id = log.gift_id', 'LEFT') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ->field('log.id,log.gift_name,sum(log.number) as number,gift.image') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ->where(['log.user_to_id' => $uid]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ->group('log.gift_id') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ->order('gift.price desc') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ->select(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $gift_wall = list_domain_image($gift_wall,['image']); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $userinfo['gift_wall'] = $gift_wall; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $this->success('success',$userinfo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |