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

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ## 消息機制 如何發送系統消息? ~~~ /** * 注:appname及之后的參數,一般情況下無需填寫 * @param $to_uid 接受消息的用戶ID * @param string $content 內容 * @param string $title 標題,默認為 您有新的消息 * @param $url 鏈接地址,不提供則默認進入消息中心 * @param int $from_uid 發起消息的用戶,根據用戶自動確定左側圖標,如果為用戶,則左側顯示頭像 * @param int $type 消息類型,0系統,1用戶,2應用 * @param string $appname 應用名,默認不需填寫,如果填寫了就必須實現對應的消息處理模型,例如貼吧里面可以基于某個回復開啟聊天 * @param string $apptype 同上,應用里面的一個標識符 * @param int $source_id 來源ID,通過來源ID獲取基于XX聊天的來源信息 * @param int $find_id 查找ID,通過查找ID獲得標識ID * @return int * @auth 陳一梟 */ public function sendMessage($to_uid, $content = '', $title = '您有新的消息', $url, $from_uid = 0, $type = 0, $appname = '', $apptype = '', $source_id = 0, $find_id = 0) ~~~ 只需要調用Message模型,sendMessage方法即可發送一條消息 `D('Common/Message')->sendMessage()` 如果您希望發送給自己的話,需要調用另一個sendMessageWithoutCheckSelf,否則系統會自動屏蔽掉發送給自己的消息 ~~~ /** * @param $to_uid 接受消息的用戶ID * @param string $content 內容 * @param string $title 標題,默認為 您有新的消息 * @param $url 鏈接地址,不提供則默認進入消息中心 * @param $int $from_uid 發起消息的用戶,根據用戶自動確定左側圖標,如果為用戶,則左側顯示頭像 * @param int $type 消息類型,0系統,1用戶,2應用 */ public function sendMessageWithoutCheckSelf($to_uid, $content = '', $title = '您有新的消息', $url, $from_uid = 0, $type = 0, $appname = '', $apptype = '', $source_id = 0, $find_id = 0) ~~~
                  <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>

                              哎呀哎呀视频在线观看