1 Star 2 Fork 1

MUGU/project_2317655

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
configs_win.js 1.31 KB
一键复制 编辑 原始数据 按行查看 历史
代长胜 提交于 2017-08-19 18:18 . 第一次提交
var HALL_IP = "127.0.0.1";
var HALL_CLIENT_PORT = 9001;
var HALL_ROOM_PORT = 9002;
var ACCOUNT_PRI_KEY = "^&*#$%()@";
var ROOM_PRI_KEY = "~!@#$(*&^%$&";
var LOCAL_IP = 'localhost';
exports.mysql = function(){
return {
HOST:'127.0.0.1',
USER:'root',
PSWD:'root',
DB:'db_babykylin',
PORT:3306,
}
}
//账号服配置
exports.account_server = function(){
return {
CLIENT_PORT:9000,
HALL_IP:HALL_IP,
HALL_CLIENT_PORT:HALL_CLIENT_PORT,
ACCOUNT_PRI_KEY:ACCOUNT_PRI_KEY,
//
DEALDER_API_IP:LOCAL_IP,
DEALDER_API_PORT:12581,
VERSION:'20161227',
APP_WEB:'http://fir.im/2f17',
};
};
//大厅服配置
exports.hall_server = function(){
return {
HALL_IP:HALL_IP,
CLEINT_PORT:HALL_CLIENT_PORT,
FOR_ROOM_IP:LOCAL_IP,
ROOM_PORT:HALL_ROOM_PORT,
ACCOUNT_PRI_KEY:ACCOUNT_PRI_KEY,
ROOM_PRI_KEY:ROOM_PRI_KEY
};
};
//游戏服配置
exports.game_server = function(){
return {
SERVER_ID:"001",
//暴露给大厅服的HTTP端口号
HTTP_PORT:9003,
//HTTP TICK的间隔时间,用于向大厅服汇报情况
HTTP_TICK_TIME:5000,
//大厅服IP
HALL_IP:LOCAL_IP,
FOR_HALL_IP:LOCAL_IP,
//大厅服端口
HALL_PORT:HALL_ROOM_PORT,
//与大厅服协商好的通信加密KEY
ROOM_PRI_KEY:ROOM_PRI_KEY,
//暴露给客户端的接口
CLIENT_IP:HALL_IP,
CLIENT_PORT:10000,
};
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/muguspace/GameMJ_client.git
git@gitee.com:muguspace/GameMJ_client.git
muguspace
GameMJ_client
project_2317655
master

搜索帮助