|
|
|
@ -82,6 +82,7 @@ public class RetailRSvcServiceImpl implements RetailRSvcService {
|
|
|
|
|
|| StringUtils.isEmpty(svcInfo.getString("platform_pub_key")) || StringUtils.isEmpty("platform_pri_key")) {
|
|
|
|
|
throw new BadRequestException("this channel config is wrong");
|
|
|
|
|
}
|
|
|
|
|
logger.debug("{} new services apply :{}", params.getString("signClient"),params.toJSONString());
|
|
|
|
|
String signa = params.getString("sign");
|
|
|
|
|
params.remove("sign");
|
|
|
|
|
params = JSONObject.parseObject(JSON.toJSONString(params), Feature.OrderedField);
|
|
|
|
@ -97,10 +98,14 @@ public class RetailRSvcServiceImpl implements RetailRSvcService {
|
|
|
|
|
String signPrice = "0";
|
|
|
|
|
String signRate = "0";
|
|
|
|
|
if (params.get("signPrice") != null) {
|
|
|
|
|
logger.debug("{} new services apply amount origin:{}", params.getString("signClient"),params.getString("signPrice"));
|
|
|
|
|
signPrice = decData(params.getString("signPrice"), key, svcInfo.getString("platform_pri_key"));
|
|
|
|
|
logger.debug("{} new services apply amount now:{}", params.getString("signClient"),signPrice);
|
|
|
|
|
}
|
|
|
|
|
if (params.get("signRate") != null) {
|
|
|
|
|
logger.debug("{} new services apply rate origin:{}", params.getString("signClient"),params.getString("signRate"));
|
|
|
|
|
signRate = decData(params.getString("signRate"), key, svcInfo.getString("platform_pri_key"));
|
|
|
|
|
logger.debug("{} new services apply rate origin:{}", params.getString("signClient"),signRate);
|
|
|
|
|
}
|
|
|
|
|
JSONObject serviceApply = new JSONObject();
|
|
|
|
|
serviceApply.put("apply_id", UUID.randomUUID().toString());
|
|
|
|
|