-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
远程函数对request的修改不生效 #426
Comments
request 已经解析完了,作为和数据库 SQL 直接相关的都存到 sqlRequest 对象了,所以移除 request 里面的 key 没用,得再加上移除 sqlRequest 的代码 |
目前可以把远程函数写在最前面执行来简单解决这个问题 |
已解决 |
看了作者的源码实现 |
@cloudAndMonkey 是这样,request 放的是前端传参的原始键值对,sqlRequest 是封装用来生成 SQL 的键值对。 大家提的 bug,有的就是只改一两行代码,甚至只是改个单词或者标点符号就解决了。 |
Demo项目里自带一个

removeKey
函数,其描述是“从对象里移除 key”在使用中发现,其移除未生效:

从返回的sql语句看,
name
字段没被移除。于是我debug了一下,发现


removeKey
函数确实移除了name
字段。以上情况令人迷惑。

removeKey
函数不是这么用得吗?远程调用函数的“字段拼接、结构变换”怎么实现呢?The text was updated successfully, but these errors were encountered: