记得上下班打卡 | git大法好,push需谨慎

Commit 0010816e authored by DEV's avatar DEV

fix购买会员;

parent f6587c28
......@@ -178,17 +178,17 @@ public class AdamMemberOrderServiceImpl extends ServiceImpl<AdamMemberOrderMappe
if (null != param.getProductId()) {
payParam.add("product_id", param.getProductId());
}
Map<String, String> payResult = null;
Map payResult = null;
switch (buyType) {
case 0:
payParam.add("detail", "正在现场 - 购买会员");
payResult = this.callPayServer(param.getPayChannel(), payParam);
result.setOrderId(payResult.get("order_id"));
result.setOrderId((String) payResult.get("order_id"));
break;
case 1:
payParam.add("detail", "正在现场 - 购买会员码");
payResult = this.callPayServer(param.getPayChannel(), payParam);
result.setOrderId(payResult.get("order_id"));
result.setOrderId((String) payResult.get("order_id"));
break;
}
result.setPayObject(payResult);
......@@ -301,7 +301,7 @@ public class AdamMemberOrderServiceImpl extends ServiceImpl<AdamMemberOrderMappe
* @param payParam 支付参数
* @return Map
*/
private Map<String, String> callPayServer(String payType, LinkedMultiValueMap<String, String> payParam) {
private Map callPayServer(String payType, LinkedMultiValueMap<String, String> payParam) {
String url = "http://testpay.zhengzai.tv";
switch (payType) {
case "APPALIPAY":
......@@ -324,7 +324,7 @@ public class AdamMemberOrderServiceImpl extends ServiceImpl<AdamMemberOrderMappe
break;
}
String json = HttpUtil.post(url, payParam);
return (HashMap<String, String>) JSONObject.parse(json);
return JsonUtils.fromJson(json, Map.class);
}
@Override
......
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