Commit 34f2a053ef7b67e14f40a9af6d182e16ed9f3fa6
1 parent
59bacb0a46
Exists in
master
and in
1 other branch
update
Showing 1 changed file with 3 additions and 2 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/OrderController.java
View file @
34f2a05
... | ... | @@ -183,6 +183,7 @@ |
183 | 183 | if (retMap != null && retMap.size() > 0 && success.equals(retMap.get("return_code")) && success.equals(retMap.get("result_code"))) |
184 | 184 | { |
185 | 185 | SortedMap<Object,Object> map=new TreeMap<>(); |
186 | + //重新拼接支付sign | |
186 | 187 | String nonceStr=NumberUtil.getRandomString(16); |
187 | 188 | String timeStamp=System.currentTimeMillis()/1000+""; |
188 | 189 | map.put("appId",Constant.PAT_APP_ID); |
... | ... | @@ -190,8 +191,8 @@ |
190 | 191 | map.put("package","prepay_id="+retMap.get("prepay_id")); |
191 | 192 | map.put("signType","MD5"); |
192 | 193 | map.put("timeStamp",timeStamp); |
193 | - System.out.println("createSign:"+createSign(null, map)); | |
194 | - | |
194 | + //System.out.println("createSign:"+createSign(null, map)); | |
195 | + //返给前端加密后的sign, | |
195 | 196 | data.put("packageValue",retMap.get("prepay_id")); |
196 | 197 | data.put("nonceStr",nonceStr); |
197 | 198 | data.put("paySign",createSign(null, map)); |