|
@@ -24,7 +24,8 @@ public class PayService {
|
|
PayOrderParam param = new PayOrderParam(money,type);
|
|
PayOrderParam param = new PayOrderParam(money,type);
|
|
ResultData resultData = payClient.downOrder(param);
|
|
ResultData resultData = payClient.downOrder(param);
|
|
if(resultData.getCode() == 200 ){
|
|
if(resultData.getCode() == 200 ){
|
|
- return (PayOrderVo ) resultData.getData();
|
|
|
|
|
|
+ String orderStr = JSONObject.toJSONString(resultData.getData());
|
|
|
|
+ return JSONObject.parseObject(orderStr,PayOrderVo.class);
|
|
}
|
|
}
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
@@ -36,7 +37,8 @@ public class PayService {
|
|
public PayOrderVo queryOrder(String orderSn){
|
|
public PayOrderVo queryOrder(String orderSn){
|
|
ResultData resultData = payClient.queryOrder(orderSn);
|
|
ResultData resultData = payClient.queryOrder(orderSn);
|
|
if(resultData.getCode() == 200 ){
|
|
if(resultData.getCode() == 200 ){
|
|
- return (PayOrderVo ) resultData.getData();
|
|
|
|
|
|
+ String orderStr = JSONObject.toJSONString(resultData.getData());
|
|
|
|
+ return JSONObject.parseObject(orderStr,PayOrderVo.class);
|
|
}
|
|
}
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|