diff --git a/lib/user.js b/lib/user.js index 2f40e779..516ffc94 100644 --- a/lib/user.js +++ b/lib/user.js @@ -274,6 +274,9 @@ Volcanos("user", {help: "用户操作", agent: { return can.base.MergeURL(location.origin+path+(clear?"":location.search), objs) }), Search: shy("请求参数", function(can, key, value) { var args = {} + var ls = location.pathname.split("/") + if (ls[1] == "chat" && ls[2] == "pod") { args["pod"] = ls[3] } + location.search && location.search.slice(1).split("&").forEach(function(item) { var x = item.split("=") x[1] != "" && (args[x[0]] = decodeURIComponent(x[1])) })