1
0
mirror of https://github.com/lxsang/antd-lua-plugin synced 2025-02-13 15:02:48 +01:00
This commit is contained in:
lxsang 2019-12-20 19:29:23 +01:00
parent b4e233a025
commit 91e13fc261
3 changed files with 6 additions and 2 deletions

BIN
dist/lua-0.5.2b.tar.gz vendored

Binary file not shown.

View File

@ -300,7 +300,7 @@ PATH_SEPARATOR = :
RANLIB = ranlib RANLIB = ranlib
SED = /bin/sed SED = /bin/sed
SET_MAKE = SET_MAKE =
SHELL = /bin/bash SHELL = /bin/sh
STRIP = strip STRIP = strip
VERSION = 0.5.2b VERSION = 0.5.2b
abs_builddir = /src/cwp/ant-plugins/antd-lua-plugin/lib/ann abs_builddir = /src/cwp/ant-plugins/antd-lua-plugin/lib/ann

View File

@ -62,12 +62,16 @@ void* handle(void* data)
lua_settable(L,-3); lua_settable(L,-3);
lua_pushstring(L,"root"); lua_pushstring(L,"root");
lua_pushstring(L, __plugin__->htdocs); lua_pushstring(L, rq->client->port_config->htdocs);
lua_settable(L,-3); lua_settable(L,-3);
lua_pushstring(L,"apiroot"); lua_pushstring(L,"apiroot");
lua_pushstring(L, cnf); lua_pushstring(L, cnf);
lua_settable(L,-3); lua_settable(L,-3);
lua_pushstring(L,"tmpdir");
lua_pushstring(L, tmpdir());
lua_settable(L,-3);
lua_setglobal(L, "__api__"); lua_setglobal(L, "__api__");