mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(cloudfunc) rm isJoinURL
This commit is contained in:
parent
44779f0bb1
commit
8693e19eae
2 changed files with 3 additions and 8 deletions
|
|
@ -77,12 +77,6 @@ var Util;
|
|||
return names;
|
||||
};
|
||||
|
||||
this.isJoinURL = function(url) {
|
||||
var ret = Util.isContainStrAtBegin(url, JOIN);
|
||||
|
||||
return ret;
|
||||
};
|
||||
|
||||
this.formatMsg = function(msg, name, status) {
|
||||
if (!status)
|
||||
status = 'ok';
|
||||
|
|
|
|||
|
|
@ -16,10 +16,11 @@
|
|||
exec = Util.exec,
|
||||
readFunc = exec.with(readPipe, req, res),
|
||||
path = main.getPathName(req),
|
||||
isJoin = CloudFunc.isJoinURL(path);
|
||||
regExp = new RegExp('^/join'),
|
||||
isJoin = path.match(regExp);
|
||||
|
||||
if (!isJoin) {
|
||||
exec(callback);
|
||||
callback();
|
||||
} else {
|
||||
names = CloudFunc.getJoinArray(path);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue