mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
修改函数名称
This commit is contained in:
@@ -50,7 +50,7 @@ func (stockHistoryMinuteTrade) Decode(bs []byte, code string) (*StockHistoryMinu
|
||||
lastPrice := Price(0)
|
||||
for i := uint16(0); i < resp.Count; i++ {
|
||||
mt := &StockMinuteTrade{
|
||||
Time: GetDate([2]byte(bs[:2])),
|
||||
Time: GetHourMinute([2]byte(bs[:2])),
|
||||
}
|
||||
var sub Price
|
||||
bs, sub = GetPrice(bs[2:])
|
||||
|
||||
@@ -74,7 +74,7 @@ func IntUnitString(n int) string {
|
||||
return FloatUnitString(float64(n))
|
||||
}
|
||||
|
||||
func GetDate(bs [2]byte) string {
|
||||
func GetHourMinute(bs [2]byte) string {
|
||||
n := Uint16(bs[:])
|
||||
h := n / 60
|
||||
m := n % 60
|
||||
|
||||
Reference in New Issue
Block a user