info address

This commit is contained in:
eson 2023-09-26 11:08:32 +08:00
parent a832a6fa81
commit 87ff25a2e6

View File

@ -88,7 +88,7 @@ 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).
UpdateColumn("ltime", now.Add(time.Hour*24*365*10)).
UpdateColumn("ltime", now.Add(time.Hour*24*365*50)).
UpdateColumn("utime", now).Error
if err != nil {
return err