Commit da895ce3 by zihan

调整rest请求的返回

parent 7a91d270
...@@ -245,7 +245,7 @@ class biboxApi { ...@@ -245,7 +245,7 @@ class biboxApi {
} catch (e) { } catch (e) {
console.error("parse body时出错"); console.error("parse body时出错");
console.error("status code:" + response.statusCode); console.error("status code:" + response.statusCode);
callback(e, null) callback({statusCode:response.statusCode}, null)
// if (response.statusCode === 429) { // if (response.statusCode === 429) {
// callback({statusCode: response.statusCode}) // callback({statusCode: response.statusCode})
// } else { // } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment