This commit is contained in:
richboo111
2022-08-18 13:51:40 +08:00
parent 19a038837e
commit 960c497d35
2 changed files with 8 additions and 1 deletions

View File

@@ -33,6 +33,13 @@ func TestCode2(t *testing.T) {
fmt.Println(data)
}
func TestCode343(t *testing.T) {
a := New("5c8492ec2744fb72bb6cc356983f3cfc317f85d4", "ttaceeda5333d7a7ab01")
data, err := a.GetTiktokOauth("e8_JIyo4H2IKJrfcuAP3q2WSBp00B_vQmTtf5YKcFFRqDEzubRleNWhxvqujCLFqxp8CrOpR0aIXKAt66fGy0uhypCTt8w-JIyItQAspqyy2qpa9FkbYlgmFZV8")
fmt.Println(err)
fmt.Println(data)
}
func TestCode22(t *testing.T) {
fmt.Println(2&4 != 0)
fmt.Println(2&2 != 0)

View File

@@ -18,7 +18,7 @@ func (a *API) GetTiktokOauth(code string) (*TiktokOauthResone, error) {
if err != nil {
return nil, err
}
globals.SugarLogger.Debug("从抖音获取的result==========================", result)
oauthAccessToken := &TiktokOauthResone{}
if err := utils.Map2StructByJson(result, oauthAccessToken, false); err != nil {
return nil, err