很多业务逻辑还没有写,先完善功能,再写业务逻辑

This commit is contained in:
dftre 2025-03-10 14:43:53 +08:00
parent 991ab454f1
commit 7d42794b17
2 changed files with 4 additions and 3 deletions

View File

@ -27,5 +27,4 @@ pay:
privateKeyPath: classpath:pay/wx/apiclient_key.pem privateKeyPath: classpath:pay/wx/apiclient_key.pem
merchantId: merchantId merchantId: merchantId
merchantSerialNumber: merchantSerialNumber merchantSerialNumber: merchantSerialNumber
notifyUrl: http://e2vca6.natappfree.cc/pay/wechat/notify notifyUrl: http://e2vca6.natappfree.cc/pay/wechat/notify

View File

@ -195,9 +195,11 @@ public class SQBServiceImpl implements ISqbPayService {
JSONObject retObj = JSON.parseObject(result); JSONObject retObj = JSON.parseObject(result);
String resCode = retObj.get("result_code").toString(); String resCode = retObj.get("result_code").toString();
if (!"200".equals(resCode)) { if (!"200".equals(resCode)) {
return null; throw new ServiceException("查询支付订单失败");
} else {
JSONObject response = retObj.getJSONObject("biz_response");
System.out.println(response);
} }
// String responseStr = retObj.get("biz_response").toString();
return payOrder; return payOrder;
} catch (Exception e) { } catch (Exception e) {
return null; return null;