GithubHelp home page GithubHelp logo

yop-nodejs-sdk's Introduction

yop-nodejs-sdk

项目结构

├── CHANGELOG.md 版本变更
├── LICENSE
├── README.md
├── Util 工具目录
│   ├── GetUniqueId.js
│   ├── HttpUtils.js
│   ├── RsaV3Util.js          //rsa签名工具
│   ├── CashierSupport.js     //收银台的签名算法
│   └── VerifyUtils.js        //业务结果签名和商户通知进行校验
├── package-lock.json
├── package.json
└── test 示例代码
    ├── download.js            //下载示例
    ├── notify.js              //商户通知进行校验
    ├── request.js post、get   //请求示例
    ├── responseSignVerify.js  //业务结果签名进行校验
    └── upload.js              //文件上传示例

项目运行

npm install
node test/request.js

常见问题

1、文件上传

问题:报错”上传文件 merQual 参数key没有指定!“
原因:上传的file文件为空,检查是否读取到本地的文件流

2、响应结果验签

问题:为什么是接口返回的未经转换的res.data字符串
原因:JSON.parse会改变原有的Number类型精度,导致验签失败

yop-nodejs-sdk's People

Contributors

yop-developer avatar jinzhou2017 avatar

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.