info address

This commit is contained in:
eson 2023-09-26 11:01:42 +08:00
parent abdf8a43e7
commit c12675698b

View File

@ -87,7 +87,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).
err = tx.Model(&FsAddress{}).Where(" `user_id` = ? and `status` = ? and `address_id` = ? ", userId, 1, addressId).
UpdateColumn("ltime", now.Add(time.Hour*24*365*100)).
UpdateColumn("utime", now).Error
if err != nil {