java110
2020-07-05 21b343eb84845477ff05a6edb1243742862c6788
service-front/src/main/java/com/java110/front/smo/payment/impl/ToNotifySMOImpl.java
@@ -51,7 +51,7 @@
                String returnmsg = (String) map.get("result_code");
                if ("SUCCESS".equals(returnmsg)) {
                    //更新数据
                    int result = confirmPayFee(map, request.getParameter("wId"));
                    int result = confirmPayFee(map);
                    if (result > 0) {
                        //支付成功
                        resXml = "<xml>" + "<return_code><![CDATA[SUCCESS]]></return_code>"
@@ -77,11 +77,14 @@
        return new ResponseEntity<String>(resXml, HttpStatus.OK);
    }
    public int confirmPayFee(Map<String, Object> map, String wId) {
        wId = wId.replace(" ", "+");
    public int confirmPayFee(Map<String, Object> map) {
        String wId = map.get("wId").toString();
        SortedMap<String, String> paramMap = new TreeMap<String, String>();
        ResponseEntity<String> responseEntity = null;
        for (String key : map.keySet()) {
            if("wId".equals(wId)){
                continue;
            }
            paramMap.put(key, map.get(key).toString());
        }
        String appId = WechatFactory.getAppId(wId);