Skip to content

Commit c6e8300

Browse files
author
潘卓然Y7000P
committed
【SDK】【修复】【针对MRFS的二次EnCode的编码问题进行JAVA服务端的优化】
1 parent e714617 commit c6e8300

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/config/opensource/cesium-plugin-debug-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const BuildInfo = require('./version/version.js')
44
// const CopywebpackPlugin = require('copy-webpack-plugin');
55
var HtmlWebpackPlugin = require('html-webpack-plugin');
66

7-
var packageName = "webclient-cesium-plugins";
7+
var packageName = "webclient-cesium-plugin";
88
var banner = `
99
datastore-cesium.(www.smaryun.com)
1010
Copyright© 2000-2018 MapGis

src/config/opensource/cesium-plugin-release-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var path = require('path');
33
const BuildInfo = require('./version/version.js')
44
var HtmlWebpackPlugin = require('html-webpack-plugin');
55

6-
var packageName = "webclient-cesium-plugins.min";
6+
var packageName = "webclient-cesium-plugin.min";
77
var banner = `
88
datastore-cesium.(www.smaryun.com)
99
Copyright© 2000-2018 MapGis

src/service/MRFS/QueryServiceBase.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,11 @@ class QueryServiceBase extends ServiceBase {
130130
}
131131
if (way.toUpperCase() === 'GET') {
132132
fullRestUrl += '?' + this.queryParam.getParameterURL();
133-
// 必须encodeURI,避免url中出现特殊字符导致请求出错
134-
fullRestUrl = encodeURI(fullRestUrl);
133+
// @date 20181022 邬俊惠 必须encodeURI,避免url中出现特殊字符导致请求出错
134+
// @date 20200925 潘卓然 这里由于原来的 fullRestUrl = this.getFullUrl(); 是encode的,
135+
// 导致上面的this.queryParam.getParameterURL()这部分没有编码,因此原来是在后面加了下面一行来确保编码
136+
// 但是由于.NET能够处理2次encode的问题,JAVA不能处理所以统一换成了1次encode,后面不需要放开这段代码
137+
// fullRestUrl = encodeURI(fullRestUrl);
135138
} else {
136139
dataObject = this.queryParam.getParameterObject();
137140
}

0 commit comments

Comments
 (0)