Skip to content

Commit

Permalink
钉钉第三方扫码登录
Browse files Browse the repository at this point in the history
  • Loading branch information
mengfengkong committed Jul 7, 2020
1 parent af94bd2 commit 453d666
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sdk/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ func ExcuteOapi(url string, oauthAppId string, oauthAppSecret string, body strin
timestamp := time.Now().UnixNano() / 1e6
nativeSignature := strconv.FormatInt(timestamp, 10)

oauthAppId = "dingoayheivmu34mylzrzg"
oauthAppSecret = "PeQfl0uBtO3VLr-Feix5cIEWM9Oo81Mhec-SRiO2SPiEPU18fg0YZaB7fHXVkX3U"
afterHmacSHA256 := encrypt.SHA256(nativeSignature, oauthAppSecret)
afterBase64 := encrypt.BASE64(afterHmacSHA256)
afterUrlEncode := encrypt.URLEncode(afterBase64)
Expand Down

0 comments on commit 453d666

Please sign in to comment.