This commit is contained in:
jinyu 2017-11-29 22:39:03 +08:00
parent 3d98e64a9f
commit 22ad93b792
2 changed files with 5 additions and 5 deletions

View File

@ -103,10 +103,10 @@ public class QRParameter implements Serializable {
String sceneValue) { String sceneValue) {
JSONObject sceneContent = new JSONObject(); JSONObject sceneContent = new JSONObject();
JSONObject scene = new JSONObject(); JSONObject scene = new JSONObject();
scene.put("scene_id", sceneValue); scene.put("scene_str", sceneValue);
sceneContent.put("scene", scene); sceneContent.put("scene", scene);
return new QRParameter(QRType.QR_STR_SCENE, expireSeconds, return new QRParameter(QRType.QR_STR_SCENE, expireSeconds, sceneValue,
sceneValue, sceneContent); sceneContent);
} }
/** /**

View File

@ -62,7 +62,7 @@ public class APPPayRequest extends AbstractPayRequest {
StringBuilder content = new StringBuilder(); StringBuilder content = new StringBuilder();
content.append("<xml>"); content.append("<xml>");
content.append(String.format("<appid><![CDATA[%s]]></appid>", payRequest.getAppId())); content.append(String.format("<appid><![CDATA[%s]]></appid>", payRequest.getAppId()));
content.append(String.format("<partnerid><![CDATA[%s]]></partnerid>", getPaymentAccount().getPartnerId())); content.append(String.format("<partnerid><![CDATA[%s]]></partnerid>", payRequest.getPartnerId()));
content.append(String.format("<prepayid><![CDATA[%s]]></prepayid>", payRequest.getPrepayId())); content.append(String.format("<prepayid><![CDATA[%s]]></prepayid>", payRequest.getPrepayId()));
content.append(String.format("<package><![CDATA[%s]]></package>", payRequest.getPackageInfo())); content.append(String.format("<package><![CDATA[%s]]></package>", payRequest.getPackageInfo()));
content.append(String.format("<noncestr><![CDATA[%s]]></noncestr>", payRequest.getNonceStr())); content.append(String.format("<noncestr><![CDATA[%s]]></noncestr>", payRequest.getNonceStr()));