|
@@ -7,6 +7,7 @@ import (
|
|
|
"eta/eta_chart_lib/models"
|
|
|
"eta/eta_chart_lib/utils"
|
|
|
"fmt"
|
|
|
+ "strings"
|
|
|
)
|
|
|
|
|
|
const (
|
|
@@ -58,6 +59,7 @@ func dealChartInfo(baseReq facade.BaseRequest) (request HTRequest, err error) {
|
|
|
func parseResult(resp string) (response HTResponse, err error) {
|
|
|
var respBytes []byte
|
|
|
if utils.RunMode != "debug" {
|
|
|
+ resp = strings.Trim(resp, `"`)
|
|
|
respBytes = utils.DesBase64Decrypt([]byte(resp), utils.ETA_MINI_DES_KEY)
|
|
|
} else {
|
|
|
respBytes = []byte(resp)
|