Browse Source

代码优化

woody 10 months ago
parent
commit
0d7f04788a

+ 1 - 1
framework-common/src/main/java/com/chelvc/framework/common/model/Region.java

@@ -276,7 +276,7 @@ public final class Region implements Serializable {
      * @return 地区实例
      */
     public static Region city(Number code) {
-        if (!isRegion(code) || isProvincial(code)) {
+        if (!isRegion(code)) {
             return null;
         }
         int value = code2city(code.intValue());

+ 1 - 1
framework-wechat/src/main/java/com/chelvc/framework/wechat/support/StandardWechatPaymentProcessor.java

@@ -114,7 +114,7 @@ public class StandardWechatPaymentProcessor implements WechatPaymentProcessor {
     public WechatPaymentCallback callback(@NonNull String content) {
         Map<String, String> notification = WechatContextHolder.xml2map(content);
         if (log.isDebugEnabled()) {
-            log.error("Wechat payment callback: {}", notification);
+            log.debug("Wechat payment callback: {}", notification);
         }
         if (Objects.equals(notification.get("return_code"), "SUCCESS")
                 && Objects.equals(this.sign(notification), notification.get("sign"))) {