fix: 修复 读写不一致 appleiap 的问题
All checks were successful
Build docker and publish / build (20.15.1) (push) Successful in 7m39s
All checks were successful
Build docker and publish / build (20.15.1) (push) Successful in 7m39s
This commit is contained in:
parent
b9cc33ad70
commit
5f884ed737
5379
common.json
Normal file
5379
common.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -72,7 +72,7 @@ func (m *customPaymentModel) FindListByPage(ctx context.Context, page, size int,
|
||||
func (m *customPaymentModel) FindListByPlatform(ctx context.Context, platform string) ([]*Payment, error) {
|
||||
var resp []*Payment
|
||||
err := m.QueryNoCacheCtx(ctx, &resp, func(conn *gorm.DB, v interface{}) error {
|
||||
return conn.Model(&Payment{}).Where("platform = ?", platform).Find(v).Error
|
||||
return conn.Model(&Payment{}).Where("LOWER(REPLACE(platform, '_', '')) = LOWER(REPLACE(?, '_', ''))", platform).Find(v).Error
|
||||
})
|
||||
return resp, err
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user