|
@@ -73,7 +73,7 @@ func (c *BaseCommonController) JSON(data interface{}, hasIndent bool, coding boo
|
|
|
|
|
|
// 数据加密
|
|
|
if services.CheckEncryption() {
|
|
|
- content = utils.DesBase64Encrypt(content, utils.Key)
|
|
|
+ content = utils.DesBase64Encrypt(content, utils.DesKey)
|
|
|
// get请求时,不加双引号就获取不到数据,不知道什么原因,所以还是在前后加上双引号吧
|
|
|
content = []byte(`"` + string(content) + `"`)
|
|
|
}
|