|
|
|
@ -90,7 +90,7 @@ public class RecipeService { |
|
|
|
|
* @param treatNum 门诊号 |
|
|
|
|
* @return 是否完成操作 |
|
|
|
|
*/ |
|
|
|
|
public Result recipeHand(MerchantEnum merchantEnum, String openid, String patientId, String treatNum, String totalFee, String recipeJson, String payWay, Integer awaitSecond) { |
|
|
|
|
public Result recipeHand(MerchantEnum merchantEnum, String openid, String patientId, String treatNum, String totalFee, String recipeJson, String payWay, Integer awaitSecond, boolean isHttps) { |
|
|
|
|
Result result = PayService.isPaymentPermittedByTime(); |
|
|
|
|
if (result != null) { |
|
|
|
|
return result; |
|
|
|
@ -99,7 +99,7 @@ public class RecipeService { |
|
|
|
|
return Result.error(ResultEnum.PAY_TYPE_ERROR); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
log.info("{}[处方预支付]参数 openid={}, patientId={}, treatNum={}, totalFee={}, awaitSecond={}, payWay={}", merchantEnum.NAME, openid, patientId, treatNum, totalFee, awaitSecond, payWay); |
|
|
|
|
log.info("{}[处方预支付]参数 isHttps={}, openid={}, patientId={}, treatNum={}, totalFee={}, awaitSecond={}, payWay={}", merchantEnum.NAME, isHttps, openid, patientId, treatNum, totalFee, awaitSecond, payWay); |
|
|
|
|
if (openid == null || patientId == null || treatNum == null || totalFee == null || recipeJson == null) { |
|
|
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT); |
|
|
|
|
} |
|
|
|
@ -138,7 +138,7 @@ public class RecipeService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 医保支付
|
|
|
|
|
JSONObject respMedJson = PayService.goMedical(merchantEnum, PEnum.RECIPE); |
|
|
|
|
JSONObject respMedJson = PayService.getMedAuthUrl(merchantEnum, PEnum.RECIPE, isHttps); |
|
|
|
|
if (respMedJson != null) { |
|
|
|
|
return Result.success(respMedJson); |
|
|
|
|
} |
|
|
|
|