master
luoyang 5 years ago
parent 56a2726ef8
commit 06f27a32cf

@ -9,7 +9,7 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId> <artifactId>manage</artifactId>
<version>1.3.36</version> <version>1.3.37</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jib-maven-plugin.version>1.4.0</jib-maven-plugin.version> <jib-maven-plugin.version>1.4.0</jib-maven-plugin.version>

@ -82,7 +82,7 @@ public class RetailRSvcServiceImpl implements RetailRSvcService {
throw new BadRequestException("this channel config is wrong"); throw new BadRequestException("this channel config is wrong");
} }
String signa = params.getString("sign"); String signa = params.getString("sign");
params.remove(signa); params.remove("sign");
params = JSONObject.parseObject(JSON.toJSONString(params), Feature.OrderedField); params = JSONObject.parseObject(JSON.toJSONString(params), Feature.OrderedField);
boolean checkSign = SignUtils.validSign(params.toJSONString(), signa, svcInfo.getString("channel_pub_key")); boolean checkSign = SignUtils.validSign(params.toJSONString(), signa, svcInfo.getString("channel_pub_key"));
if (!checkSign) { if (!checkSign) {

Loading…
Cancel
Save