info get profile
This commit is contained in:
		
							parent
							
								
									887bc555fa
								
							
						
					
					
						commit
						5fcd76e32e
					
				@ -86,14 +86,14 @@ func (a *FsAddressModel) SettingUserDefaultAddress(ctx context.Context, userId i
 | 
			
		||||
 | 
			
		||||
		now := time.Now().UTC()
 | 
			
		||||
 | 
			
		||||
		err = tx.Model(&FsAddress{}).Where(" `user_id` = ? and `status` = ? and `address_id` = ? ", userId, 1, addressId).
 | 
			
		||||
		err = tx.Model(&FsAddress{}).Where("`user_id` = ? and `status` = 1 and `address_id` = ? ", userId, addressId).
 | 
			
		||||
			UpdateColumn("ltime", now.AddDate(250, 0, 0)).
 | 
			
		||||
			UpdateColumn("utime", now).Error
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			return err
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		err = tx.Where(" `user_id` = ? and `status` = ? and `address_id` != ? and `ltime` > ? ", userId, 1, addressId, now.AddDate(10, 0, 0)).
 | 
			
		||||
		err = tx.Where(" `user_id` = ? and `status` = 1 and `address_id` != ? and `ltime` > ? ", userId, addressId, now.AddDate(10, 0, 0)).
 | 
			
		||||
			UpdateColumn("ltime", now).Error
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			logx.Error(err)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user