当前位置:网站首页>Precautions for wechat official account development

Precautions for wechat official account development

2022-06-22 12:43:00 cathy1213

  1. JS Interface security domain name / Authorization callback domain name / The business domain name does not support IP Address 、 Port number and short chain domain name
  2. Official account configures payment directory positioning : With tp For example
    With no arguments : www.xxx.com/index.php/Weixin/Pay/index Wexin grouping Pay Under the controller index Method payment
    Fill in :www.xxx.com/index.php/Weixin/Pay/
    With parameters :www.xxx.com/index.php/Weixin/Pay/id/1
    Fill in : www.xxx.com/index.php/Weixin/Pay/id/
    With multiple parameters :www.xxx.com/index.php/Weixin/Pay/id/1/state/1 Out-of-service / Format , The current page can only be referenced with a question mark www.xxx.com/index.php/Weixin/Pay?id=1&state=1
    Fill in : www.xxx.com/index.php/Weixin/Pay
  3. Wechat Authorization
    redirect uri: Check whether the domain name specified by the authorization callback in the code is consistent with the domain name configured in the official account , Inconsistencies can also lead to this error , Many mistakes in iphone It will be displayed on wechat .
    stay tp in , All pages are displayed through the portal file , Upload the file to when configuring the authorized domain name index.php Under the same level directory ( That is, under the root directory of the domain name )
  4. Wechat interface call appears the permission value is offline verifying
    This mistake is because config Not executed correctly , Or called JSAPI There was no introduction config Of jsApiList Parameters in . It is recommended to check in the following order :
    confirm config Pass correctly .
    If it is called when the page is loaded JSAPI, It must be written in wx.ready In the callback .
    confirm config Of jsApiList Parameter contains this JSAPI.
  5. Wechat picture preview previewImage Loading all the time , resolvent : Complete the path of the picture , Change to Internet pictures
原网站

版权声明
本文为[cathy1213]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221204087804.html