Merge branch 'master' of https://e.coding.net/rosydev/baseapi
This commit is contained in:
@@ -20,7 +20,7 @@ func init() {
|
|||||||
appKey := "N0R033L2QQFR53"
|
appKey := "N0R033L2QQFR53"
|
||||||
secretKey := "686ffc3e31c24594838baed045563790"
|
secretKey := "686ffc3e31c24594838baed045563790"
|
||||||
api = New(appKey, secretKey, "")
|
api = New(appKey, secretKey, "")
|
||||||
api.GetAccessToken()
|
//api.GetAccessToken()
|
||||||
// api.GetAccessToken()
|
// api.GetAccessToken()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,13 @@ func TestCode343(t *testing.T) {
|
|||||||
fmt.Println(data)
|
fmt.Println(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestCode343(t *testing.T) {
|
||||||
|
a := New("5c8492ec2744fb72bb6cc356983f3cfc317f85d4", "ttaceeda5333d7a7ab01")
|
||||||
|
data, err := a.GetTiktokOauth("-j_QmmDM7B-mjKKk9wcijMeUTAV75mNXbJI4rqabt1IMkDGEmmw1M0-azYJwoXNOrWaDeXlw4xNivEd-uobXuuZrtt7bNn-6AMzf8jvkXp6Jm3LPcP56KisO9w4")
|
||||||
|
fmt.Println(err)
|
||||||
|
fmt.Println(data)
|
||||||
|
}
|
||||||
|
|
||||||
func TestCode22(t *testing.T) {
|
func TestCode22(t *testing.T) {
|
||||||
fmt.Println(2&4 != 0)
|
fmt.Println(2&4 != 0)
|
||||||
fmt.Println(2&2 != 0)
|
fmt.Println(2&2 != 0)
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
package utils
|
package utils
|
||||||
|
|
||||||
import "time"
|
import (
|
||||||
|
"reflect"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
func String2Pointer(value string) *string {
|
func String2Pointer(value string) *string {
|
||||||
return &value
|
return &value
|
||||||
@@ -72,3 +75,11 @@ func Pointer2Time(ptr *time.Time) (value time.Time) {
|
|||||||
}
|
}
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func IsNil(i interface{}) bool {
|
||||||
|
defer func() {
|
||||||
|
recover()
|
||||||
|
}()
|
||||||
|
vi := reflect.ValueOf(i)
|
||||||
|
return vi.IsNil()
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user