GithubHelp home page GithubHelp logo

BaseWxPayResult类checkResult时,是否校验结果或如果结果不正确,是否打error日志,应该支持可配置。 about wxjava HOT 4 CLOSED

ni-shiliu avatar ni-shiliu commented on June 12, 2024
BaseWxPayResult类checkResult时,是否校验结果或如果结果不正确,是否打error日志,应该支持可配置。

from wxjava.

Comments (4)

binarywang avatar binarywang commented on June 12, 2024

你有什么好的实现方式,欢迎直接 PR

from wxjava.

ni-shiliu avatar ni-shiliu commented on June 12, 2024

可以参考支付宝的sdk,新增变量来控制是否打印error日志和是否校验结果,使用方在初始化client的时候,可以设置该参数:
private static boolean needEnableLogger = true;
private static boolean needCheckSuccess = true; // 该功能源码里已可以控制是否checkSuccess,只是没有提供方法给使用方
public static void setNeedEnableLogger(boolean needEnableLogger) {
AlipayLogger.needEnableLogger = needEnableLogger;
}
public static void setNeedCheckSuccess(boolean needCheckSuccess) {
this.needCheckSuccess = needEnableLogger;
}

from wxjava.

ni-shiliu avatar ni-shiliu commented on June 12, 2024
image image

from wxjava.

stale avatar stale commented on June 12, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from wxjava.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.