wangming il y a 1 mois
Parent
commit
ae579224b4

+ 3 - 3
yami-shop-api/src/main/java/com/yami/shop/api/controller/WxPayController.java

@@ -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("微信回调异常");
         }
     }