|  | @@ -251,7 +251,7 @@ class UserService
 | 
	
		
			
				|  |  |                                      $gift = model('Gift')->where($giftWhere)->find();
 | 
	
		
			
				|  |  |                                      if (!empty($gift) && $inviteGiftNum > 0) {
 | 
	
		
			
				|  |  |                                          $giftBack = [
 | 
	
		
			
				|  |  | -                                            'user_id' => $userId,//用户ID
 | 
	
		
			
				|  |  | +                                            'user_id' => $preUser['id'],//用户ID
 | 
	
		
			
				|  |  |                                              'gift_id' => $inviteGift,//礼物ID
 | 
	
		
			
				|  |  |                                              'name' => $gift['name'],//礼物名称
 | 
	
		
			
				|  |  |                                              'image' => $gift['image'],//礼物静图
 | 
	
	
		
			
				|  | @@ -260,7 +260,7 @@ class UserService
 | 
	
		
			
				|  |  |                                              'number' => $inviteGiftNum,//数量
 | 
	
		
			
				|  |  |                                              'get_way' => 5,//获得途径:1=活动获得,2=充值购买,3=爵位赠送,4=签到赠送,5=邀请获得
 | 
	
		
			
				|  |  |                                          ];
 | 
	
		
			
				|  |  | -                                        $giftBackRes = model()->insertGetId($giftBack);
 | 
	
		
			
				|  |  | +                                        $giftBackRes = model('GiftBack')->insertGetId($giftBack);
 | 
	
		
			
				|  |  |                                          if (!$giftBackRes) {
 | 
	
		
			
				|  |  |                                              throw new Exception('赠送礼物失败');
 | 
	
		
			
				|  |  |                                          }
 |