我的前端在一台阿里云服务器跑通,我想在我另一个台腾讯云的服务器实现和阿里云服务器的负载均衡,可以让他们按需要分发到两个其中之一。但我的前端代码写死了访问我的阿里云服务器的8083端口。需要帮忙解决
Success story sharing
200元找人实现
C++的LuaBridge库 有例子 只需要实现几个接口
lua_State* L = luaL_newstate(); // 创建一个新的 Lua 状态
luaL_openlibs(L); // 加载 Lua 标准库
luabridge::LuaRef ret = luabridge::LuaRef::fromStack(L, -1);
std::cout << "序号: " << ret["序号"].cast
luabridge::LuaRef contents = ret["内容"];
for (int i = 0; i < contents.length(); ++i) {
luabridge::LuaRef item = contents[i + 1];
if (item.isNil()) {
std::cerr << "Item at index " << (i + 1) << " does not exist." << std::endl;
continue;
}
std::cout << "内容 " << (i + 1) << ": 名称 = " << item["名称"].caststd::string() << ", x = " << item["x"].cast
}