|
@@ -51,14 +51,14 @@ public class WxPayController {
|
|
|
if (code != null && code.equals("200")) {
|
|
|
JSONObject resourceJson = JSONObject.parseObject(json.get("wxData").toString());
|
|
|
JSONObject attach = resourceJson.getJSONObject("attach");
|
|
|
- if (attach != null){
|
|
|
+ if (attach != null) {
|
|
|
Object orderNo = attach.get("orderNo");
|
|
|
- if (orderNo != null){
|
|
|
+ if (orderNo != null) {
|
|
|
System.out.println(orderNo);
|
|
|
}
|
|
|
}
|
|
|
return ResponseEntity.ok("success");
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
throw new RuntimeException("微信回调异常");
|
|
|
}
|
|
|
}
|