+ sns_test.go
This commit is contained in:
11
platformapi/weixinapi/sns_test.go
Normal file
11
platformapi/weixinapi/sns_test.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package weixinapi
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestSNSRetrieveToken(t *testing.T) {
|
||||
result, err := weixinapi.SNSRetrieveToken("061lxVZh0gye0x1fNrZh0imd0i0lxVZS")
|
||||
if err != nil {
|
||||
t.Fatal(err.Error())
|
||||
}
|
||||
sugarLogger.Debug(result)
|
||||
}
|
||||
@@ -21,6 +21,9 @@ func init() {
|
||||
|
||||
// sandbox
|
||||
weixinapi = New("wxbf235770edaabc5c", "ba32b269a068a5b72486a0beafd171e8")
|
||||
|
||||
// prod
|
||||
// weixinapi = New("wx2bb99eb5d2c9b82c", "6bbbed1443cc062c20a015a64c07a531")
|
||||
}
|
||||
|
||||
func handleError(t *testing.T, err error) {
|
||||
|
||||
Reference in New Issue
Block a user