重构交易处理逻辑,合并充值与购买流程,优化交易状态管理;更新相关数据结构和接口
This commit is contained in:
@@ -43,7 +43,9 @@ var (
|
||||
ErrSequenceOverflow = errors.New("sequence overflow")
|
||||
)
|
||||
|
||||
func (s *IdService) GenSerial(ctx context.Context) (string, error) {
|
||||
func (s *IdService) GenSerial() (string, error) {
|
||||
var ctx = context.Background()
|
||||
|
||||
// 构造Redis键
|
||||
now := time.Now().Unix()
|
||||
key := idSerialKey(now)
|
||||
|
||||
Reference in New Issue
Block a user