1ʹѹߣ2345ѹ360ѹ.apkļ

2ѹҵassets/data/scripts/game/charge/charge_platform_view.lua

3ʹNodepad++ߴcharge_platform_view.luaļRechargeItemRender:OnClickBuyBtn()

4޸תӣֱ޸Ĵ˴local url = "http://վIP/pay/index.php"

function RechargeItemRender:OnClickBuyBtn()
	local role_id = GameVoManager.Instance:GetUserVo():GetNowRole()
	local role_name = GameVoManager.Instance:GetMainRoleVo().name
	local server_id = GameVoManager.Instance:GetUserVo().real_server_id
	if self.data.rmb and self.data.rmb ~= 0 and role_id and role_name and server_id then
		local my = self
		local url = "http://վIP/pay/index.php"
		local payParams = {}
			payParams.money		= my.data.rmb
			payParams.rolename	= role_name
			payParams.roleid	= role_id
			payParams.serverid	= server_id
			local req_fmt = "%s?money=%s&rolename=%s&roleid=%s&serverid=%s"
			local req_Url = string.format(req_fmt,url,payParams.money,payParams.rolename,payParams.roleid,payParams.serverid)
			PlatformAdapter:OpenBrowser(req_Url)
	else
		SysMsgCtrl.Instance:ErrorRemind("ֵʧܣ")
	end
end