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

package userrpc
import (
"testing"
"git.tetele.net/tgo/crypter"
)
func Test_BindThird(t *testing.T) {
// dbname := "test1_tetele_com"
// site_id := "1001"
// platform := "deliver_mini"
// user_id := "1"
// openid := "CasfoieFsdfsdfiDiodf_df"
// openname := "测试中"
// avatar := "https://ssss.ttt.ddd/sfsd"
// mobile := "1234456456"
// res, err := BindThird(site_id, dbname, platform, user_id, openid, openname, "", avatar, mobile)
// t.Log(res)
// t.Log(err)
// data := "E5B2642BDEA1FBC85BA958C398E58DEC2E1425E26E25D6A178DBD078AD0DFC6859DF5634B0A01CE01F84E056380981A1F1433044FB197D8965FD8F3322DF2373619AD4ACB158605B45AC3947B200C8B62C2B30256B2D2D7283492F268F609944"
data := "E5B2642BDEA1FBC85BA958C398E58DEC2E1425E26E25D6A178DBD078AD0DFC6859DF5634B0A01CE01F84E056380981A1F1433044FB197D89AF51E05A9E9F5C76BE8F563F2E4D42AB3C3C649B4187A7C48E98988C734CEACD"
org := crypter.DesDe(data, DES_KEY)
t.Log(org)
}