fix(charge):修正日期保存时的时区问题。
This commit is contained in:
parent
3f8ced5453
commit
b638bc5f75
|
@ -187,9 +187,9 @@ func (c _ChargeService) CancelCharge(seq int64, uid string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (_ChargeService) updateUserExpiration(tx *bun.Tx, ctx context.Context, uid string, expiration time.Time) error {
|
||||
func (ch _ChargeService) updateUserExpiration(tx *bun.Tx, ctx context.Context, uid string, expiration time.Time) error {
|
||||
_, err := tx.NewUpdate().Model((*model.UserDetail)(nil)).
|
||||
Set("service_expiration = ?", expiration).
|
||||
Set("service_expiration = ?", expiration.Format("2006-01-02")).
|
||||
Where("id = ?", uid).
|
||||
Exec(ctx)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user