Skip to content

Commit

Permalink
haha
Browse files Browse the repository at this point in the history
  • Loading branch information
yangcunfeng committed Dec 13, 2016
1 parent ea9f557 commit 96b519a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions assets/Script/Common.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ cc.Class({
var input = event.data;

var data = JSON.parse(decoder.decode(event.data));
console.log("server response");

console.log(data);

Expand Down Expand Up @@ -231,9 +232,11 @@ cc.Class({
//请求后台坐下
if (me.ws.readyState === WebSocket.OPEN) {
cc.log("send message to server3000");
me.ws.send(JSON.stringify({C2S_Login: {
Ai_id: '123456',
Hand:[1,2]
me.ws.send(JSON.stringify({C2S_Join: {
UserId: '123456',
UserName:v["nick"],
TableId:'22222',
UserToken:'33333',
}}));
me.ws.send(JSON.stringify({C2S_Login: {
UserAccount: "tian",
Expand Down
3 changes: 2 additions & 1 deletion settings/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"group-list": [
"default"
],
"start-scene": "b1a3242c-6595-42df-a0fc-e177f727763d"
"start-scene": "b1a3242c-6595-42df-a0fc-e177f727763d",
"excluded-modules": []
}

0 comments on commit 96b519a

Please sign in to comment.