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

@ -89,7 +89,7 @@ public class QRParameter implements Serializable {
return new QRParameter(QRType.QR_SCENE, expireSeconds,
Long.toString(sceneValue), sceneContent);
}
/**
* 创建临时二维码(场景值为string)
*
@ -103,10 +103,10 @@ public class QRParameter implements Serializable {
String sceneValue) {
JSONObject sceneContent = new JSONObject();
JSONObject scene = new JSONObject();
scene.put("scene_id", sceneValue);
scene.put("scene_str", sceneValue);
sceneContent.put("scene", scene);
return new QRParameter(QRType.QR_STR_SCENE, expireSeconds,
sceneValue, sceneContent);
return new QRParameter(QRType.QR_STR_SCENE, expireSeconds, sceneValue,
sceneContent);
}
/**

View File

@ -62,7 +62,7 @@ public class APPPayRequest extends AbstractPayRequest {
StringBuilder content = new StringBuilder();
content.append("<xml>");
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("<package><![CDATA[%s]]></package>", payRequest.getPackageInfo()));
content.append(String.format("<noncestr><![CDATA[%s]]></noncestr>", payRequest.getNonceStr()));