a
This commit is contained in:
@@ -3,6 +3,7 @@ package controllers
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
|
"git.rosy.net.cn/baseapi/platformapi/dingdingapi"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
@@ -38,7 +39,9 @@ func (c *DingDingController) Msg() {
|
|||||||
buf.WriteString("success")
|
buf.WriteString("success")
|
||||||
//buf.WriteString(a.corpID)
|
//buf.WriteString(a.corpID)
|
||||||
binResult, _ := utils.AESCBCEncpryt(buf.Bytes(), aesKey, aesKey[:16])
|
binResult, _ := utils.AESCBCEncpryt(buf.Bytes(), aesKey, aesKey[:16])
|
||||||
callbackResponse.Encrypt = base64.StdEncoding.EncodeToString(binResult)
|
callbackResponse = &dingdingapi.CallbackResponse{
|
||||||
|
Encrypt: base64.StdEncoding.EncodeToString(binResult),
|
||||||
|
}
|
||||||
c.Data["json"] = callbackResponse
|
c.Data["json"] = callbackResponse
|
||||||
c.ServeJSON()
|
c.ServeJSON()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user