Files
public/sign/sign_test.go
xiexiaojun 2ace0bade5 new
new
2019-03-07 21:30:01 +08:00

21 lines
358 B
Go

package sign
import (
"fmt"
"public/message"
"public/tools"
"testing"
"time"
)
func Test_sing(t *testing.T) {
now := time.Now()
str := "1" + tools.GetTimeString(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())
}