Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议去掉错误打印变成错误返回 #60

Open
niefengjun opened this issue Mar 8, 2018 · 0 comments
Open

建议去掉错误打印变成错误返回 #60

niefengjun opened this issue Mar 8, 2018 · 0 comments

Comments

@niefengjun
Copy link

// if (data.return_code == RETURN_CODES.FAIL) {
// error = new Error(data.return_msg);
// error.name = 'ProtocolError';
// } else if (data.result_code == RETURN_CODES.FAIL) {
// console.log("data.err_code======",data.err_code) ;
// error = data.err_code;
// error.name = 'BusinessError';
// } else if (data.appid && self.appId !== data.appid) {
// error = new Error();
// error.name = 'InvalidAppId';
// } else if (data.mch_id && self.mchId !== data.mch_id) {
// error = new Error();
// error.name = 'InvalidMchId';
// } else if (data.mchid && self.mchId !== data.mchid) {
// error = new Error();
// error.name = 'InvalidMchId';
// } else if (self.subMchId && self.subMchId !== data.sub_mch_id) {
// error = new Error();
// error.name = 'InvalidSubMchId';
// } else if (data.sign && self._getSign(data) !== data.sign) {
// error = new Error();
// error.name = 'InvalidSignature';
// }

注释掉这段即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant