|
|
@@ -3749,6 +3749,17 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
|
|
|
if(StringUtils.isNotEmpty(orderId)&&orderId.equals(order.getId().toString())){
|
|
|
return R.error("正在支付中...");
|
|
|
}
|
|
|
+ try{
|
|
|
+ if(order.getPayType().equals("3") && order.getPayPrice().compareTo(order.getPayMoney()) == 0){
|
|
|
+ order.setPayType("1");
|
|
|
+ FsStoreOrderScrm fsStoreOrderScrm = new FsStoreOrderScrm();
|
|
|
+ fsStoreOrderScrm.setId(param.getOrderId());
|
|
|
+ fsStoreOrderScrm.setPayType("1");
|
|
|
+ fsStoreOrderMapper.updateFsStoreOrder(fsStoreOrderScrm);
|
|
|
+ }
|
|
|
+ }catch (Exception e){
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
FsUserScrm user=userService.selectFsUserById(order.getUserId());
|
|
|
if(user!=null){
|
|
|
@@ -3829,7 +3840,7 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
|
|
|
Map<String, Object> resultMap = JSON.parseObject(result.getPay_info(), new TypeReference<Map<String, Object>>() {});
|
|
|
String s = (String) resultMap.get("package");
|
|
|
resultMap.put("packageValue",s);
|
|
|
- return R.ok().put("payType",param.getPayType()).put("result",resultMap);
|
|
|
+ return R.ok().put("payType",1).put("result",resultMap);
|
|
|
}
|
|
|
else{
|
|
|
return R.error(result.getResp_desc());
|