修改函数名称

This commit is contained in:
钱纯净
2024-10-30 22:47:19 +08:00
parent 81566bc718
commit e26add4ee3
2 changed files with 2 additions and 2 deletions

View File

@@ -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:])

View File

@@ -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