forked from zhangshiqian1214/skynet-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
70 changed files
with
902 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--[[ | ||
房间id, 游戏台坐位数, 底注, 最小入场 | ||
room_id, seat_count, init_bet, min_enter | ||
]] | ||
local xpnn_desk_config = { | ||
[10101] = { | ||
room_id = 10101, | ||
seat_count = 5, | ||
init_bet = 0.10, | ||
min_enter = 30.00, | ||
}, | ||
[10102] = { | ||
room_id = 10102, | ||
seat_count = 5, | ||
init_bet = 1.00, | ||
min_enter = 50.00, | ||
}, | ||
[10103] = { | ||
room_id = 10103, | ||
seat_count = 5, | ||
init_bet = 5.00, | ||
min_enter = 300.00, | ||
}, | ||
[10104] = { | ||
room_id = 10104, | ||
seat_count = 5, | ||
init_bet = 10.00, | ||
min_enter = 600.00, | ||
}, | ||
} | ||
return xpnn_desk_config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
local modules = {} | ||
|
||
modules.desk = "desk.desk_impl" | ||
modules.xpnn = "xpnn.xpnn_impl" | ||
|
||
return modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
local db_mgr = require "common.db_mgr" | ||
|
||
local player_db = {} | ||
|
||
function player_db.get_player_info(id) | ||
local mysqldb = db_mgr.get_mysql_db() | ||
local sql = string.format("select * from tb_player where player_id = %d;", id) | ||
local result = mysqldb:query(sql) | ||
if result.err then | ||
error(result.err) | ||
end | ||
return result[1] | ||
end | ||
|
||
return player_db |
Oops, something went wrong.