Files
public/sign/sign_test.go
2021-01-29 13:41:12 +08:00

22 lines
392 B
Go

package sign
import (
"fmt"
"testing"
"time"
"github.com/xxjwxc/public/message"
"github.com/xxjwxc/public/tools"
)
func Test_sing(t *testing.T) {
now := time.Now()
str := "1" + tools.GetTimeStr(now)
str += "1.0001"
fmt.Println(str)
ttt := tools.Md5Encoder(str)
fmt.Println(ttt)
fmt.Println(OnCheckSign("wwwthings", ttt, 1, now, 1.0001))
fmt.Println(message.GetSuccessMsg())
}