929
parent
0396990aa8
commit
83db3aea38
|
|
@ -87,7 +87,7 @@ local function __getCode(cmd, _data, callBack)
|
||||||
end
|
end
|
||||||
|
|
||||||
function __getCode_test(cmd, _data, callBack)
|
function __getCode_test(cmd, _data, callBack)
|
||||||
printlog("__getCode_test")
|
|
||||||
local _client = ControllerManager.WebClient
|
local _client = ControllerManager.WebClient
|
||||||
_client:send(Protocol.WEB_GET_CODE, { id = _data.id }, function(res)
|
_client:send(Protocol.WEB_GET_CODE, { id = _data.id }, function(res)
|
||||||
if (res.ReturnCode == 0) then
|
if (res.ReturnCode == 0) then
|
||||||
|
|
|
||||||
|
|
@ -1357,6 +1357,7 @@ end
|
||||||
|
|
||||||
-- 改变体力值
|
-- 改变体力值
|
||||||
function M:FG_ChangeFag(group_id, member_id, fag, callback)
|
function M:FG_ChangeFag(group_id, member_id, fag, callback)
|
||||||
|
|
||||||
local _client = ControllerManager.GroupClient
|
local _client = ControllerManager.GroupClient
|
||||||
local _data = {}
|
local _data = {}
|
||||||
_data.id = group_id
|
_data.id = group_id
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ BaseWindow = {
|
||||||
_close_destroy = false,
|
_close_destroy = false,
|
||||||
|
|
||||||
--点击窗口以外关闭
|
--点击窗口以外关闭
|
||||||
_close_zone = true,
|
_close_zone = false,
|
||||||
|
|
||||||
--队列
|
--队列
|
||||||
_queue = true,
|
_queue = true,
|
||||||
|
|
|
||||||
|
|
@ -270,6 +270,7 @@ end
|
||||||
|
|
||||||
-- 修改体力值
|
-- 修改体力值
|
||||||
local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
||||||
|
|
||||||
local gniv =
|
local gniv =
|
||||||
GroupNumberInputView.new(
|
GroupNumberInputView.new(
|
||||||
nil,
|
nil,
|
||||||
|
|
@ -288,6 +289,7 @@ local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
||||||
-- end
|
-- end
|
||||||
if (res1.ReturnCode == 0) then
|
if (res1.ReturnCode == 0) then
|
||||||
callback(res1.Data)
|
callback(res1.Data)
|
||||||
|
ViewUtil.ErrorTip(res1.ReturnCode, '更新成功!')
|
||||||
else
|
else
|
||||||
ViewUtil.ErrorTip(res1.ReturnCode, '更改积分失败!')
|
ViewUtil.ErrorTip(res1.ReturnCode, '更改积分失败!')
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -134,6 +134,7 @@ end
|
||||||
|
|
||||||
-- 修改体力值
|
-- 修改体力值
|
||||||
local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
||||||
|
|
||||||
local gniv =
|
local gniv =
|
||||||
GroupNumberInputView.new(
|
GroupNumberInputView.new(
|
||||||
nil,
|
nil,
|
||||||
|
|
|
||||||
|
|
@ -217,6 +217,7 @@ end
|
||||||
|
|
||||||
-- 修改体力值
|
-- 修改体力值
|
||||||
local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
||||||
|
|
||||||
local gniv =
|
local gniv =
|
||||||
GroupNumberInputView.new(
|
GroupNumberInputView.new(
|
||||||
nil,
|
nil,
|
||||||
|
|
|
||||||
|
|
@ -253,6 +253,7 @@ end
|
||||||
|
|
||||||
-- 修改体力值
|
-- 修改体力值
|
||||||
local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
||||||
|
|
||||||
local gniv =
|
local gniv =
|
||||||
GroupNumberInputView.new(
|
GroupNumberInputView.new(
|
||||||
nil,
|
nil,
|
||||||
|
|
|
||||||
|
|
@ -292,6 +292,7 @@ end
|
||||||
|
|
||||||
-- 修改体力值
|
-- 修改体力值
|
||||||
local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
||||||
|
|
||||||
local gniv =
|
local gniv =
|
||||||
GroupNumberInputView.new(
|
GroupNumberInputView.new(
|
||||||
nil,
|
nil,
|
||||||
|
|
|
||||||
|
|
@ -199,6 +199,7 @@ end
|
||||||
|
|
||||||
-- 修改体力值
|
-- 修改体力值
|
||||||
local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
||||||
|
|
||||||
local gniv = GroupNumberInputView.new(nil, function(num)
|
local gniv = GroupNumberInputView.new(nil, function(num)
|
||||||
num = ad2d((is_add and num or -num))
|
num = ad2d((is_add and num or -num))
|
||||||
ViewUtil.ShowModalWait()
|
ViewUtil.ShowModalWait()
|
||||||
|
|
|
||||||
|
|
@ -210,6 +210,7 @@ end
|
||||||
|
|
||||||
-- 修改体力值
|
-- 修改体力值
|
||||||
local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
||||||
|
|
||||||
local gniv = GroupNumberInputView.new(nil, function(num)
|
local gniv = GroupNumberInputView.new(nil, function(num)
|
||||||
num = ad2d((is_add and num or -num))
|
num = ad2d((is_add and num or -num))
|
||||||
ViewUtil.ShowModalWait()
|
ViewUtil.ShowModalWait()
|
||||||
|
|
|
||||||
|
|
@ -123,6 +123,7 @@ end
|
||||||
|
|
||||||
-- 修改体力值
|
-- 修改体力值
|
||||||
local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
||||||
|
|
||||||
local gniv = GroupNumberInputView.new(nil, function(num)
|
local gniv = GroupNumberInputView.new(nil, function(num)
|
||||||
num = ad2d((is_add and num or -num))
|
num = ad2d((is_add and num or -num))
|
||||||
ViewUtil.ShowModalWait()
|
ViewUtil.ShowModalWait()
|
||||||
|
|
|
||||||
|
|
@ -304,6 +304,7 @@ end
|
||||||
|
|
||||||
-- 修改体力值
|
-- 修改体力值
|
||||||
local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
||||||
|
|
||||||
local gniv =
|
local gniv =
|
||||||
GroupNumberInputView.new(
|
GroupNumberInputView.new(
|
||||||
nil,
|
nil,
|
||||||
|
|
@ -322,6 +323,7 @@ local function __change_fag(gid, pid, is_add, cur_hp, callback)
|
||||||
-- end
|
-- end
|
||||||
if (res1.ReturnCode == 0) then
|
if (res1.ReturnCode == 0) then
|
||||||
callback(res1.Data)
|
callback(res1.Data)
|
||||||
|
|
||||||
else
|
else
|
||||||
ViewUtil.ErrorTip(res1.ReturnCode, '更改积分失败!')
|
ViewUtil.ErrorTip(res1.ReturnCode, '更改积分失败!')
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ public class VerCheck : MonoBehaviour
|
||||||
|
|
||||||
//公用
|
//公用
|
||||||
|
|
||||||
string init_url = "http://8.138.120.167:19898/NewFK/config/init2_1.json";
|
string init_url = "http://8.148.219.235:19898/NewFK/config/init2_1.json";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue