info address default

This commit is contained in:
eson 2023-10-08 11:38:10 +08:00
parent 32b8ceeb96
commit 24304b0c85

View File

@ -80,7 +80,7 @@ func (a *FsAddressModel) SettingUserDefaultAddress(ctx context.Context, userId i
}
}
tr := tx.Where("`address_id` = ? and `user_id` = ? and `status` = 1", addressId, userId).
tr := tx.Model(&FsAddress{}).Where("`address_id` = ? and `user_id` = ? and `status` = 1", addressId, userId).
UpdateColumn("utime", now)
if isDefault == 1 {
tr.UpdateColumn("ltime", now.AddDate(250, 0, 0))