aa
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
"crypto/aes"
|
||||
"crypto/cipher"
|
||||
"encoding/base64"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"golang.org/x/text/encoding/simplifiedchinese"
|
||||
@@ -758,7 +757,7 @@ func h8l82int(h, l string) (i int64) {
|
||||
for j := 0; j < flag2; j++ {
|
||||
s2 = "0" + s2
|
||||
}
|
||||
i, _ = strconv.ParseInt(s1+s2, 2, 10)
|
||||
i, _ = strconv.ParseInt(s1+s2, 2, 32)
|
||||
return i
|
||||
}
|
||||
|
||||
@@ -778,10 +777,11 @@ func TestUpdateStatus(t *testing.T) {
|
||||
// json.Unmarshal(result, &mobile)
|
||||
//}
|
||||
//fmt.Println(utils.Format4Output(mobile, true))
|
||||
str := "z"
|
||||
printDataGBK, _ := Utf8ToGbk([]byte(str))
|
||||
printData := hex.EncodeToString(printDataGBK)
|
||||
fmt.Println(printData)
|
||||
//data := "1e00180200015032303231303631353030303031308628e9"
|
||||
//orderNo := h8l82int(data[len(data)-6:len(data)-4], data[len(data)-4:len(data)-2])
|
||||
//base, _ := strconv.ParseInt(data[len(data)-6:len(data)-4]+data[len(data)-4:len(data)-2], 16, 10)
|
||||
i, _ := strconv.ParseInt("8628", 16, 32)
|
||||
fmt.Println(xtob("86"), xtob("28"), i)
|
||||
}
|
||||
|
||||
func sss() (data2 []byte) {
|
||||
|
||||
Reference in New Issue
Block a user