mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
refactored
This commit is contained in:
parent
8914bb5282
commit
1907d9e700
1 changed files with 2 additions and 2 deletions
|
|
@ -75,12 +75,12 @@
|
|||
res.setEncoding('utf8');
|
||||
res.on('data', function (chunk) { body += chunk; });
|
||||
res.on('end', function() {
|
||||
pCallBack(qs.parse(body).access_token);
|
||||
Util.exec(pCallBack, qs.parse(body).access_token);
|
||||
});
|
||||
});
|
||||
|
||||
req.write(data);
|
||||
req.end();
|
||||
req.on('error', function(e) { pCallBack(e.message); });
|
||||
req.on('error', function(e) { Util.exec(pCallBack, e.message); });
|
||||
}
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue