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

BUG: 查询账单下载地址 billDownloadQuery 接口出错 #34

Closed
jerryhu opened this issue Jul 24, 2018 · 7 comments
Closed

BUG: 查询账单下载地址 billDownloadQuery 接口出错 #34

jerryhu opened this issue Jul 24, 2018 · 7 comments

Comments

@jerryhu
Copy link
Contributor

jerryhu commented Jul 24, 2018

查询账单下载地址 billDownloadQuery 接口报错:

2018-07-24 11:50:11,094 ERROR 1093 [-/127.0.0.1/-/0ms GET /] nodejs.TypeError: Cannot read property 'code' of undefined
    at isSucceed (/.../node_modules/alipay-mobile/lib/index.js:99:43)
    at Alipay.makeResponse (/.../node_modules/alipay-mobile/lib/index.js:107:11)
    at /.../node_modules/alipay-mobile/lib/index.js:132:23
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

可能是 config.ALIPAY_API_LIST列表未添加 alipay.data.dataservice.bill.downloadurl.query 的原因

@jerryhu
Copy link
Contributor Author

jerryhu commented Jul 24, 2018

alipay/src/config/index.js 文件修改如下:

ALIPAY_API_LIST: {
    'alipay.trade.query': '订单查询',
    'alipay.trade.refund': '交易退款',
    'alipay.trade.cancel': '取消订单',
    'alipay.trade.precreate': '预创建订单',
    'alipay.trade.close': '关闭交易',
    'alipay.trade.create': '创建交易',
    'alipay.trade.order.settle': '交易结算',
    'alipay.trade.fastpay.refund.query': '交易退款查询',
    'alipay.trade.app.pay': '生成创建订单所需参数',
    'alipay.fund.trans.toaccount.transfer': '单笔转账到支付宝账户接口',
    'alipay.data.dataservice.bill.downloadurl.query': '查询账单下载地址接口', // <-- 需添加的代码
    'async.notify': '异步通知' // 自定义
  }

@Luncher
Copy link
Owner

Luncher commented Jul 25, 2018

@jerryhu 你提一个PR吧

jerryhu added a commit to jerryhu/alipay that referenced this issue Jul 26, 2018
(BUG: 查询账单下载地址 billDownloadQuery 接口出错 Luncher#34)
@Luncher
Copy link
Owner

Luncher commented Jul 26, 2018

版本发布了,你试一试:)

@Luncher Luncher closed this as completed Jul 27, 2018
@jerryhu
Copy link
Contributor Author

jerryhu commented Jul 30, 2018

@Luncher npm的版本号还是2.2.5, 能不能发布下新版本
https://www.npmjs.com/package/alipay-mobile

@Luncher
Copy link
Owner

Luncher commented Jul 30, 2018

发布了,你看一看

@jerryhu
Copy link
Contributor Author

jerryhu commented Jul 30, 2018

OK, 更新了版本2.2.6, billDownloadQuery 接口调用成功, bug已修复

@Luncher
Copy link
Owner

Luncher commented Jul 30, 2018

👌

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

2 participants