<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ####接口權限 ![不支持](https://box.kancloud.cn/13715f31176b79477b1b114f976c52a4_74x74.jpg =30x30) 訂閱號,![支持](https://box.kancloud.cn/210679aec05376f88eda9c088a806868_72x72.jpg =30x30) 認證訂閱號,![不支持](https://box.kancloud.cn/13715f31176b79477b1b114f976c52a4_74x74.jpg =30x30) 服務號,![支持](https://box.kancloud.cn/210679aec05376f88eda9c088a806868_72x72.jpg =30x30) 認證服務號 ####客服消息 微信公眾號允許開發者對與公眾號在24小時內交互過的粉絲主動發送消息,稱之為客服消息。 #####發送文本客服消息 >[info] sendCustomNotice($message) * $message 要發送客服消息結構,消息分為文本,圖片,語音,視頻,音樂,圖文,卡券下面我們分別說明這幾種消息類型 *返回值*` error [錯誤結構](http://www.hmoore.net/donknap/we7/134630) *示例* ``` //判斷當前公眾號是認證服務號,具有發送權限 if($_W['account']['level'] >= ACCOUNT_SUBSCRIPTION_VERIFY) { $info = "【{$_W['account']['name']}】充值通知\n"; $info .= "您在{$time}進行會員余額充值,充值金額【{$num}】元,充值后余額【{$credit['credit2']}】元。\n"; $message = array( 'msgtype' => 'text', 'text' => array('content' => urlencode($info)), 'touser' => $openid, ); $account_api = WeAccount::create(); $status = $account_api->sendCustomNotice($message); if (is_error($status)) { message('發送失敗,原因為' . $status['message']); } //發送成功 } ``` #####發送其它類型客服消息 ######文本消息 ``` $message = array( 'touser' => $openid, 'msgtype' => 'text', 'text' => array('content' => '文本消息') ); ``` >[warning] 以下發送客服消息所用到的 media_id,詳細參見:[上傳素材](http://www.hmoore.net/donknap/we7/245194) ######圖片消息 ``` $message = array( 'touser' => $openid, 'msgtype' => 'image', 'image' => array('media_id' => 'MEDIA_ID') //微信素材media_id,微擎中微信上傳組件可以得到此值 ); ``` ######語音消息 ``` $message = array( 'touser' => $openid, 'msgtype' => 'voice', 'voice' => array('media_id' => 'MEDIA_ID') //微信素材media_id,微擎中微信上傳組件可以得到此值 ); ``` ######視頻消息 ``` $message = array( 'touser' => $openid, 'msgtype' => 'video', 'video' => array( 'media_id' => 'MEDIA_ID', 'thumb_media_id' => 'MEDIA_ID', 'title' => '標題', 'description' => '描述' ) ); ``` ######音樂消息 ``` $message = array( 'touser' => $openid, 'msgtype' => 'music', 'music' => array( 'title' => '標題', 'description' => '描述' 'musicurl' => '音樂文件URL', 'hqmusicurl' => '高清音樂文件URL', 'thumb_media_id' => 'MEDIA_ID', ) ); ``` ######圖文消息 ``` $message = array( 'touser' => $openid, 'msgtype' => 'news', 'news' => array( array( 'title' => '標題', 'description' => '描述', 'url' : '鏈接', 'picurl' : '封面圖片地址' ), array( 'title' => '標題1', 'description' => '描述1', 'url' : '鏈接', 'picurl' : '封面圖片地址' ), ) ); ``` ``` $message = array( 'touser' => $openid, 'msgtype' => 'mpnews', 'mpnews' => array('media_id': 'MEDIA_ID') //微信素材media_id,微擎中微信上傳組件可以得到此值 ); ``` ######卡券消息 ``` $message = array( 'touser' => $openid, 'msgtype' => 'wxcard', 'wxcard' => array('card_id': 'CARD_ID') ); ```
                  <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>

                              哎呀哎呀视频在线观看