Browse Source

解密数据

317699326@qq.com 6 days ago
parent
commit
1a063f165d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      controllers/chart.go

+ 2 - 0
controllers/chart.go

@@ -66,6 +66,8 @@ func (this *ChartController) ChartDetail() {
 		return
 	}
 
+	b = utils.DesBase64Decrypt(b, utils.DesKey)
+
 	result := new(models.BaseResponse)
 	if e = json.Unmarshal(b, &result); e != nil {
 		err = fmt.Errorf("result unmarshal err: %s\nresult: %s", e.Error(), string(b))