mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 08:54:10 +00:00
refactored
This commit is contained in:
parent
140a97504f
commit
4da3e6082c
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