用户接口远程调用
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.

28 lines
928 B

  1. package userrpc
  2. import (
  3. "testing"
  4. "git.tetele.net/tgo/crypter"
  5. )
  6. func Test_BindThird(t *testing.T) {
  7. // dbname := "test1_tetele_com"
  8. // site_id := "1001"
  9. // platform := "deliver_mini"
  10. // user_id := "1"
  11. // openid := "CasfoieFsdfsdfiDiodf_df"
  12. // openname := "测试中"
  13. // avatar := "https://ssss.ttt.ddd/sfsd"
  14. // mobile := "1234456456"
  15. // res, err := BindThird(site_id, dbname, platform, user_id, openid, openname, "", avatar, mobile)
  16. // t.Log(res)
  17. // t.Log(err)
  18. // data := "E5B2642BDEA1FBC85BA958C398E58DEC2E1425E26E25D6A178DBD078AD0DFC6859DF5634B0A01CE01F84E056380981A1F1433044FB197D8965FD8F3322DF2373619AD4ACB158605B45AC3947B200C8B62C2B30256B2D2D7283492F268F609944"
  19. data := "E5B2642BDEA1FBC85BA958C398E58DEC2E1425E26E25D6A178DBD078AD0DFC6859DF5634B0A01CE01F84E056380981A1F1433044FB197D89AF51E05A9E9F5C76BE8F563F2E4D42AB3C3C649B4187A7C48E98988C734CEACD"
  20. org := crypter.DesDe(data, DES_KEY)
  21. t.Log(org)
  22. }