Commit c8f77afb authored by unset's avatar unset

添加订单商品信息

parent 69a0378d
...@@ -324,16 +324,8 @@ public class WXPay { ...@@ -324,16 +324,8 @@ public class WXPay {
String response_body = HTTPUtils.post("https://api.mch.weixin.qq.com/pay/unifiedorder", xmlStr, String response_body = HTTPUtils.post("https://api.mch.weixin.qq.com/pay/unifiedorder", xmlStr,
"text/xml; charset=UTF-8", "UTF-8", null, null); "text/xml; charset=UTF-8", "UTF-8", null, null);
log.error("response_body====="+response_body); log.error("response_body====="+response_body);
String mweb_url = analysisXML(response_body, "mweb_url"); String mweb_url = analysisXML(response_body, "code_url");
log.error("before->append mweb_url:{},,response_body:{}", mweb_url, response_body); log.error("before->append mweb_url:{},,response_body:{}", mweb_url, response_body);
try {
mweb_url += "&redirect_url="
+ URLEncoder.encode(notify_url + "&token=" + token + "&payed=1", "UTF-8");
} catch (UnsupportedEncodingException e) {
log.error(e.getMessage(), e);;
}
log.error("after->append mweb_url:{},isIos:{}", mweb_url);
return mweb_url; return mweb_url;
......
...@@ -95,6 +95,17 @@ ...@@ -95,6 +95,17 @@
<version>0.2</version> <version>0.2</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.6.1</version>
</dependency>
<dependency> <dependency>
<groupId>com.fasterxml.jackson.module</groupId> <groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-jaxb-annotations</artifactId> <artifactId>jackson-module-jaxb-annotations</artifactId>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment