This commit is contained in:
parent
cf922df0e7
commit
e03bae5d46
|
|
@ -63,9 +63,9 @@ class WarehouseLockC {
|
||||||
op = 21008002
|
op = 21008002
|
||||||
});
|
});
|
||||||
SUser.SendNotiBox(" 验证成功 账号金库限制成功解除", 1);
|
SUser.SendNotiBox(" 验证成功 账号金库限制成功解除", 1);
|
||||||
|
NoWarehouseList.rawdelete(Uid);
|
||||||
} else {
|
} else {
|
||||||
SUser.SendNotiBox(" 验证失败 请重新登录游戏以重试", 1);
|
SUser.SendNotiBox(" 验证失败 请重新登录游戏以重试", 1);
|
||||||
NoWarehouseList.rawdelete(Uid);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.bindenv(this));
|
}.bindenv(this));
|
||||||
|
|
|
||||||
|
|
@ -160,11 +160,12 @@ function _Dps_JYYJBB2_Main_() {
|
||||||
|
|
||||||
|
|
||||||
Cb_Inter_AuctionResultBidding_Leave_Func["交易播报2"] <- function(args) {
|
Cb_Inter_AuctionResultBidding_Leave_Func["交易播报2"] <- function(args) {
|
||||||
print("拍卖HOOK");
|
|
||||||
|
Timer.SetTimeOut(function() {
|
||||||
|
|
||||||
local username = User(args[1]).GetCharacName();
|
local username = User(args[1]).GetCharacName();
|
||||||
local id = NativePointer(args[2]).add(14).readInt();
|
local id = NativePointer(args[2]).add(14).readInt();
|
||||||
NativePointer(args[2]).Output(50);
|
|
||||||
print("拍卖id: " + id);
|
|
||||||
local CheckSql = "SELECT item_id,unit_price,owner_id FROM taiwan_cain_auction_gold.auction_history_" + getYearMonth() + " where auction_id = " + id + ";";
|
local CheckSql = "SELECT item_id,unit_price,owner_id FROM taiwan_cain_auction_gold.auction_history_" + getYearMonth() + " where auction_id = " + id + ";";
|
||||||
//从池子拿连接
|
//从池子拿连接
|
||||||
local SqlObj = MysqlPool.GetInstance().GetConnect();
|
local SqlObj = MysqlPool.GetInstance().GetConnect();
|
||||||
|
|
@ -172,6 +173,7 @@ function _Dps_JYYJBB2_Main_() {
|
||||||
|
|
||||||
|
|
||||||
if (Ret == null || Ret.len() == 0) {
|
if (Ret == null || Ret.len() == 0) {
|
||||||
|
print(123);
|
||||||
MysqlPool.GetInstance().PutConnect(SqlObj);
|
MysqlPool.GetInstance().PutConnect(SqlObj);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
@ -183,8 +185,10 @@ function _Dps_JYYJBB2_Main_() {
|
||||||
local maijiacid = Ret[0][2];
|
local maijiacid = Ret[0][2];
|
||||||
|
|
||||||
if (maijiacid == User(args[1]).GetCID()) {
|
if (maijiacid == User(args[1]).GetCID()) {
|
||||||
|
print(321);
|
||||||
MysqlPool.GetInstance().PutConnect(SqlObj);
|
MysqlPool.GetInstance().PutConnect(SqlObj);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -194,8 +198,6 @@ function _Dps_JYYJBB2_Main_() {
|
||||||
|
|
||||||
local price = Ret2[0][0];
|
local price = Ret2[0][0];
|
||||||
|
|
||||||
local num = price / unitPrice;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
local CheckSql3 = "SELECT charac_name FROM taiwan_cain.charac_info where charac_no = " + maijiacid;
|
local CheckSql3 = "SELECT charac_name FROM taiwan_cain.charac_info where charac_no = " + maijiacid;
|
||||||
|
|
@ -207,7 +209,10 @@ function _Dps_JYYJBB2_Main_() {
|
||||||
|
|
||||||
MysqlPool.GetInstance().PutConnect(SqlObj);
|
MysqlPool.GetInstance().PutConnect(SqlObj);
|
||||||
|
|
||||||
World.SendNotiPacketMessage(format("玩家[%s]在拍卖行用[%d]金币从[%s]手里购得[%s]物品[%d]个", username, price, mjname, PvfItem.GetNameById(itemId), num), 14);
|
World.SendNotiPacketMessage(format("玩家[%s]在拍卖行用[%d]金币从[%s]手里购得[%s]物品", username, price, mjname, PvfItem.GetNameById(itemId)), 14);
|
||||||
|
|
||||||
|
}, 100);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue