uniapp package Android app WeChat cash withdrawal

1. Configure the manifest.json file

 How to obtain the appid and appsecret how to obtain the problem to see the document.

2. Call WeChat login

uni.login({
  provider: 'weixin',
  success: function (loginRes) {
    // authResul下包含 用户的openid,把openid保存下来发给后端
    console.log(loginRes.authResult);
  }
});

3. Save the openid returned by the login interface and send it to the backend, so that the backend calls the WeChat cash withdrawal interface

4. The front-end error-prone points that need attention

    When debugging on a real machine, you need to customize the packaging base, and you cannot use the editor's default standard running base, because the standard running base has a default appid. So you need to debug on the basis of custom debugging base, how to configure: https://blog.csdn.net/qq_42044542/article/details/116854072

Guess you like

Origin blog.csdn.net/qq_42044542/article/details/116855179
Recommended