<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ## 一、概述 公眾號的業務開發,環境配置比較瑣碎,這里比較詳細的列出了相關配置過程; ## 二、平臺配置 ``` rayframework.enabled.pay=true rayframework.wechat.pay.v3.ray.app-id=yourappId rayframework.wechat.pay.v3.ray.app-v3-secret=yourapiV3key rayframework.wechat.pay.v3.ray.mch-id=yourmchId rayframework.wechat.pay.v3.ray.domain= rayframework.wechat.pay.v3.ray.cert-path=cert/wechat/yourapptag/apiclient_cert.p12 ``` ``` rayframework.open.weixin-official-account-app-id=yourappId rayframework.open.weixin-official-account-app-secret=yourappsecret rayframework.open.weixin-official-account-front-url=yourwechatfrontrooturl rayframework.open.weixin-official-account-server-root-url=yourwechatserverrooturl rayframework.open.weixin-login-with-binded-open-id-only=false ``` >[danger] > 1、app-id和weixin-official-account-app-id需要配置當前公眾號的應用appId; > 2、app-v3-secret配置當前商戶的v3版本api密鑰; ## 三、公眾號配置 ### **(1)開發基礎配置** **公眾號服務器配置:** 進入開發---基本配置--服務器配置; ![](https://img.kancloud.cn/4a/8c/4a8c401164ccf028c0103cd019d05656_1366x736.png) 點擊修改配置,進入服務器具體配置; ![](https://img.kancloud.cn/61/f8/61f8fbf40a848ed8311e149b144d954d_1920x942.png) 服務器地址(URL): ``` ${appRootUrl}/api/system/open/weixin/officialaccount/callback ``` 令牌(Token): ``` rayframework_weixin ``` 例如: ![](https://img.kancloud.cn/b6/2e/b62edf17e3abc8cf64d930834bc9359a_1366x736.png) 提交后,如果成功,則顯示; ![](https://img.kancloud.cn/f7/83/f783bbd04ac0b0a210e7afadfac3f672_1366x736.png) 然后,點擊啟用,即可; ![](https://img.kancloud.cn/4e/fc/4efc9f8235183b3a32685c8ac92b744a_1366x736.png) 到這里,就完成了微信公眾號與后臺業務系統之間數據通訊層面的對接了; ### **(2)開發高級配置** 上面剛剛完成了數據通訊層面的對接,我們開發的業務系統已經可以通過微信公眾號捕獲微信用戶的輸入,并能對微信用戶進行響應了;但很多業務場景下,我們還有進一步的應用需求,就是能夠在微信公眾號中,打開我們開發的業務網頁,同時捕獲到當前微信用戶的身份和各種信息,這樣,才能滿足開發的需求; #### **網頁授權設置:** 進入公眾號設置--功能設置; ![](https://img.kancloud.cn/a6/30/a63094ec51e857709e80c21cd5ea2176_1366x736.png) ![](https://img.kancloud.cn/13/89/138905c2709dbb71db837dba54fb25c0_1366x736.png) 這里需要先下載MP_verify_*.txt文件,并放到根目錄下(如果是內置的tomcat調試的時候,可以放到靜態資源根目錄下即可,如${tomcat}/webapps/ROOT目錄里面),然后再點擊保存; ![](https://img.kancloud.cn/4f/3b/4f3bf0458ea434e8930ff93f50fe5c42_1366x736.png) #### **JS接口安全域名:** 進入公眾號設置--功能設置; ![](https://img.kancloud.cn/c8/ba/c8ba277e9f21f3b62d19d0bca4776a0e_1920x942.png) ![](https://img.kancloud.cn/04/0a/040aacd41f28676d3d30ccf40190f000_1067x772.png) 這里需要先下載MP_verify_*.txt文件,并放到根目錄下(如果是內置的tomcat調試的時候,可以放到靜態資源根目錄下即可,如${tomcat}/webapps/ROOT目錄里面),然后再點擊保存; ### **(3)配置公眾號菜單** 利用系統公眾號功能,配置好菜單,發布即可; 參考:[微信公號](../../%E5%B9%B3%E5%8F%B0%E5%8A%9F%E8%83%BD/%E6%8E%A5%E5%85%A5%E7%AE%A1%E7%90%86/%E5%BE%AE%E4%BF%A1%E5%85%AC%E5%8F%B7.md)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看