book.putVariable存放长文本异常 #4715
Closed
Luoyacheng
started this conversation in
General
Replies: 1 comment 4 replies
-
短内容优先存储到内存,长内容存储到本地临时缓存文件中。 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
存一个大概几千字符的自定义变量。
比如变量名是book.putVariable("zspj",pjr);
这个时候log,book.variable,对象里面没有zspj键名反而是存放成功。 book.getVariable("zspj");能得到存放的变量。
但是有概率,log,book.variable的时候显示有"zspj":"",就是存放异常了。
用book.getVariable("zspj");或java.get('zspj');得到的都是空。
而且这时候再存长文本也存不进,存book.putVariable("zspj",1);就能成功,继续存长文本还是保持的1
主要是有些书能行,有些不行。而且和长文本的长度无关(十几万字符的也能成功存取),感觉可以修复一下
Beta Was this translation helpful? Give feedback.
All reactions