修复誉名录BUG
This commit is contained in:
parent
b5fba5bed3
commit
616a254c31
|
|
@ -89,6 +89,7 @@ class NewTitleC {
|
||||||
ClientSocketPackFuncMap.rawset(21012001, function(SUser, Jso) {
|
ClientSocketPackFuncMap.rawset(21012001, function(SUser, Jso) {
|
||||||
local SendInfo = {};
|
local SendInfo = {};
|
||||||
local Cid = SUser.GetCID().tostring();
|
local Cid = SUser.GetCID().tostring();
|
||||||
|
print(data.rawin(Cid))
|
||||||
if (data.rawin(Cid)) {
|
if (data.rawin(Cid)) {
|
||||||
SendInfo = data.rawget(Cid);
|
SendInfo = data.rawget(Cid);
|
||||||
}
|
}
|
||||||
|
|
@ -180,9 +181,9 @@ class NewTitleC {
|
||||||
local Sql = "SELECT * FROM newtitle"
|
local Sql = "SELECT * FROM newtitle"
|
||||||
local Ret = MysqlObject.Select(Sql, ["int", "string"]);
|
local Ret = MysqlObject.Select(Sql, ["int", "string"]);
|
||||||
foreach(Row in Ret) {
|
foreach(Row in Ret) {
|
||||||
local uid = Row[0];
|
local cid = Row[0];
|
||||||
local jso = Json.Decode(Row[1]);
|
local jso = Json.Decode(Row[1]);
|
||||||
data.rawset(uid, jso);
|
data.rawset(cid.tostring(), jso);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue