From e1b9a1ec114556c0b1ff20b3d1ea95ba7f518e62 Mon Sep 17 00:00:00 2001 From: grimm <1769111741@qq.com> Date: Fri, 28 Jun 2024 15:00:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=82=A0=E8=B0=B7=E6=94=AF=E4=BB=98=E5=9B=9E?= =?UTF-8?q?=E8=B0=83=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/jmfy/controller/YouGuRechargeController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/jmfy/controller/YouGuRechargeController.java b/src/main/java/com/jmfy/controller/YouGuRechargeController.java index 561d1e6..e0d8a8d 100644 --- a/src/main/java/com/jmfy/controller/YouGuRechargeController.java +++ b/src/main/java/com/jmfy/controller/YouGuRechargeController.java @@ -55,11 +55,12 @@ public class YouGuRechargeController { String gameExt = request.getParameter("extinfo"); //透传参数,如CP下单有值提交,则会原样回传,不得超过255个字符 String[] callback = gameExt.split("_"); String result = PayLogic.initOrder(gameExt, orderno, String.valueOf(amount), new Date(), callback[0], PaySdkEnum.YOUGU); - jsonObject.put("errmsg",result); - if (result.equals("SUCCESS")){ + if (result.equals("SUCCESS") || result.equals("ORDER_IS_EXIST")){ jsonObject.put("errno","0"); + jsonObject.put("errmsg","SUCCESS"); return jsonObject.toString(); } + jsonObject.put("errmsg",result); return jsonObject.toString(); }