Skip to content

Commit 7759aff

Browse files
committed
保留请求中的 __type 字段,以供 rpc 功能使用
1 parent 1cd59b1 commit 7759aff

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/leanengine.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ Cloud.use('/__engine/1/ping', function(req, res) {
9696
prodValue = req.body._ApplicationProduction;
9797
sessionToken = req.body._SessionToken;
9898
for (param in req.body) {
99-
if (param.charAt(0) === '_') {
99+
// remove _* but keep __*
100+
if (param.charAt(0) === '_' && param.charAt(1) !== '_') {
100101
delete req.body[param];
101102
}
102103
}

0 commit comments

Comments
 (0)