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

支付宝小程序请求不走proceed这个方法? #4

Open
liuyunzyj opened this issue Aug 22, 2019 · 5 comments
Open

支付宝小程序请求不走proceed这个方法? #4

liuyunzyj opened this issue Aug 22, 2019 · 5 comments
Labels
question Further information is requested

Comments

@liuyunzyj
Copy link

image

@TigerHee
Copy link
Owner

调试了一下,是有这个问题。官方的bug 官方文档里说支持支付宝

@TigerHee
Copy link
Owner

TigerHee commented Sep 2, 2019

@liuyunzyj 我的小程序最近也要转为支付宝小程序遇到同样的问题,然后发现可以在chain.proceed的catch内处理可行。

return chain.proceed(requestParams).then(res=>{}).catch(err=>{
    if (err.status === HTTP_STATUS.AUTHENTICATE) {
      Taro.setStorageSync("Authorization", "");
      pageToLogin()
      return Promise.reject("需要鉴权");
    }
  })

@liuyunzyj
Copy link
Author

我也是在catch内处理的

@TigerHee TigerHee added the question Further information is requested label Sep 6, 2019
@TiAmo-code
Copy link

可是在catch内处理的话,拿不到接口返回的数据。我在被这个问题所困扰

@tigerHeeJS
Copy link

可是在catch内处理的话,拿不到接口返回的数据。我在被这个问题所困扰

error就是服务端抛出的数据哒

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

No branches or pull requests

4 participants