sapoiuyt

Results 6 comments of sapoiuyt

使用了 @ResponseBody @GetMapping(path = "/cap", produces = "image/png") 返回的head头依然是json的格式。

@ResponseBody @GetMapping(path = "/cap", produces = "image/png") byte[] image() throws IOException { AssetManager am = App.getInstance().getAssets(); InputStream in = am.open("web/image/logo.png"); ByteArrayOutputStream outStream = new ByteArrayOutputStream(); byte[] data = new byte[4096];...

> 任何非ExportType对象传递到lua都会被会以userdata包装,如果不在lua中进行原生对象的操作,只是作为传递对象使用的话,这样是可以的。 我尝试了Android 的2.4 版本,用setGlobal 使用string的类型没问题,但是传Object 出现nil报错

> 如果出现nil就是不正常的,我先看看是什么问题 早些休息吧,有时间再处理。 辛苦了

> 你好,这个问题我测试了一下并没发现存在问题,能告诉我具体你的代码和系统版本吗?以下是我测试的代码片段: > > ``` > _luaContext.setGlobal("nativeObject", new LuaValue(new Object())); > _luaContext.evalScript("print(nativeObject);"); > LuaValue objValue = _luaContext.getGlobal("nativeObject"); > Log.v("lsc", objValue.toObject().toString()); > ``` > > 输出是没有问题的 > > ``` > 05-10...

same problem。env is windows 11, and user net 6.0 version.