aa
This commit is contained in:
@@ -219,7 +219,7 @@ func (a *API) GetCallbackMsg(formMap map[string]interface{}, bodyData []byte) (m
|
||||
baseapi.SugarLogger.Debugf("dingding GetCallbackMsg descryptMsg:%s", descryptMsg)
|
||||
err = utils.UnmarshalUseNumber([]byte(descryptMsg), &msgMap)
|
||||
} else {
|
||||
fmt.Println("err ", err)
|
||||
baseapi.SugarLogger.Debugf("dingdingapi GetCallbackMsg, Decrypt err :", err)
|
||||
}
|
||||
}
|
||||
return msgMap, a.Err2CallbackResponse(err)
|
||||
@@ -257,7 +257,6 @@ func (c *DingTalkCrypto) GetDecryptMsg(signature, timestamp, nonce, secretMsg st
|
||||
size := binary.BigEndian.Uint32(plantText[16:20])
|
||||
plantText = plantText[20:]
|
||||
corpID := plantText[size:]
|
||||
fmt.Println("222222222222222222222222222222222222", string(plantText[:size]), string(corpID))
|
||||
if string(corpID) != c.SuiteKey {
|
||||
return "", errors.New("ERROR: CorpID匹配不正确")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user