悠谷支付回调返回

master
grimm 2024-06-28 15:00:07 +08:00
parent 13f29eb9f8
commit e1b9a1ec11
1 changed files with 3 additions and 2 deletions

View File

@ -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();
}