网络相关
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
428 B

3 years ago
  1. package network
  2. import (
  3. "testing"
  4. )
  5. func Test_CheckToken(t *testing.T) {
  6. code := "127328"
  7. token := CreateToken(code)
  8. t.Log(token)
  9. str := "1dcfbe790d270f45ae35779afbc4072e|1532068096|90EDAA4C1E97C7517E9D10AB9157E4D0D9CC51996E3827F2"
  10. check, user := CheckToken(str)
  11. t.Log(check)
  12. t.Log(user)
  13. }
  14. func Test_GetIpPortFromUrl(t *testing.T) {
  15. url := "http://raydesktop.gxycloud.com:8082/getmaster"
  16. GetIpPortFromUrl(url)
  17. }