Giter Site home page Giter Site logo

Comments (3)

liqingfeng avatar liqingfeng commented on August 29, 2024 1

@iyjian 我在这个项目的源代码里,在verifyPayment里把参数做了个JSON.parse,这样就能校验过了。不过我不知道这样改是否会引入其它问题。

from alipay.

liqingfeng avatar liqingfeng commented on August 29, 2024

我发现是在这个函数里
function responseType(response) {
var type = Object.keys(config2.default.ALIPAY_API_LIST).map(function (name) {
return name.replace(/./g, '
');
}).find(function (api) {
return api + '_response' in response;
});
if (type) return type + '_response';
}
由于传进去的response是一个字符串,当用in操作时报错的,所以这个verifyPayment函数传进去的参数result具体应该是什么格式?

from alipay.

iyjian avatar iyjian commented on August 29, 2024

@liqingfeng 是不是要用body parser 弄成Obj的

from alipay.

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.