<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之旅 廣告
                1.用戶登錄成功后 app需要與本平臺進行socket通信 2.socket連接成功后需要發送以下"json字符"串給本平臺 **mac_uuid為設備唯一編碼** iris-websocket-message:chat;0; {"type":"login","account":"用戶賬號","mac_uuid":"xxxxxxxxxxx"} 3.本平臺收到數據后將回復一下json信息 iris-websocket-message:chat;0;{"message":"","status":"success","type":"login"} 4.即表示socket通信成功(可以多臺設備登陸同一個賬號) 5.再本平臺收到訂單信息后將通過本socket推送給app (多臺同賬號設備) 6.訂單信息如下 iris-websocket-message:chat;0;{"message":"906|123456","status":"success","type":"pushOrder"} message為 訂單金額(分)|訂單號 **socket地址: ws:localhost:8181/ws** **示例地址:http://localhost:8181/order/socket?account=cuijun** 示例代碼demo ~~~ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>socket</title> <script src="https://cdn.bootcss.com/jquery/1.2.3/jquery.min.js"></script> <script src="http://localhost:8181/iris-ws.js"></script> </head> <body> <div id="msg">查看Console控制臺</div> </body> <script> $(document).ready(function () { /** * webscoket 業務 * @type {string} */ var wsURL = "ws:localhost:8181/ws"; var socket = new Ws(wsURL); socket.OnConnect(function () { console.log("OnConnect"); //數據發送 socket.Emit("chat", JSON.stringify({"type": "login","account":{{.account}}})); }); socket.OnDisconnect(function () { console.log("OnDisconnect"); }); //數據接收 socket.On("chat", function (msg) { var pushData = JSON.parse(msg); if (typeof pushData == "object"){ console.log("receive: " + msg); } }); }); </script> </html> ~~~
                  <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>

                              哎呀哎呀视频在线观看