|
@@ -176,15 +176,20 @@ public class AppUsersCashrecordController extends BaseController
|
|
}
|
|
}
|
|
// Double amount = (appUsersCashrecord.getMoney().doubleValue() - appUsersCashrecord.getService().doubleValue()) * 100;
|
|
// Double amount = (appUsersCashrecord.getMoney().doubleValue() - appUsersCashrecord.getService().doubleValue()) * 100;
|
|
Double amount = (appUsersCashrecord.getMoney().doubleValue()) * 100;
|
|
Double amount = (appUsersCashrecord.getMoney().doubleValue()) * 100;
|
|
- Map<String, Object> map = PayOrderUtils.getPayUrl(String.valueOf(appUsersCashrecord.getOrderno()),appChargeChannel.getChannelKey(),amount.intValue(),extra);
|
|
|
|
- String url = "";
|
|
|
|
|
|
+ String orderno = IdUtil.fastUUID();
|
|
|
|
+ logger.info("流水{},订单{} 发起提现",cashrecord.getOrderno(),orderno);
|
|
|
|
+ Map<String, Object> map = PayOrderUtils.getPayUrl(orderno,appChargeChannel.getChannelKey(),amount.intValue(),extra);
|
|
|
|
+// String url = "";
|
|
|
|
+ AppUsersCashrecord cashRecord = new AppUsersCashrecord();
|
|
|
|
+ cashRecord.setId(appUsersCashrecord.getId());
|
|
|
|
+ cashRecord.setTradeNo(orderno);
|
|
if("1".equals(String.valueOf(map.get("code")))){
|
|
if("1".equals(String.valueOf(map.get("code")))){
|
|
- url = map.get("data").toString();
|
|
|
|
- AppUsersCashrecord cashRecord = new AppUsersCashrecord();
|
|
|
|
- cashRecord.setId(appUsersCashrecord.getId());
|
|
|
|
|
|
+// url = map.get("data").toString();
|
|
|
|
+
|
|
cashRecord.setCashOutStatus(3L); //转出中
|
|
cashRecord.setCashOutStatus(3L); //转出中
|
|
appUsersCashrecordService.updateAppUsersCashrecord(cashRecord);
|
|
appUsersCashrecordService.updateAppUsersCashrecord(cashRecord);
|
|
}else{
|
|
}else{
|
|
|
|
+ appUsersCashrecordService.updateAppUsersCashrecord(cashRecord);
|
|
throw new ServiceException("发起提现失败: " + map.get("msg"));
|
|
throw new ServiceException("发起提现失败: " + map.get("msg"));
|
|
}
|
|
}
|
|
}
|
|
}
|