Commit 73281d19 authored by linj's avatar linj Committed by vipwzw

fix OnesOrderKey, sort by height , prefix by addr and status

parent fbcda598
...@@ -140,7 +140,7 @@ func calcOnesBuyOrderPrefixStatus(addr string, status int32) []byte { ...@@ -140,7 +140,7 @@ func calcOnesBuyOrderPrefixStatus(addr string, status int32) []byte {
// 目前页面是按addr, 状态来 // 目前页面是按addr, 状态来
// //
func calcOnesOrderKey(addr string, status int32, ty int32, height int64, key string) []byte { func calcOnesOrderKey(addr string, status int32, ty int32, height int64, key string) []byte {
return []byte(fmt.Sprintf(orderASTHK+"%s:%d:%d:%010d:%s", addr, status, ty, height, key)) return []byte(fmt.Sprintf(orderASTHK+"%s:%d:%010d:%d:%s", addr, status, height, ty, key))
} }
func calcOnesOrderPrefixStatus(addr string, status int32) []byte { func calcOnesOrderPrefixStatus(addr string, status int32) []byte {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment