Skip to content

Commit

Permalink
add sdk log for isQueryRegionAPIAvaiable()
Browse files Browse the repository at this point in the history
  • Loading branch information
bachue committed May 27, 2021
1 parent 0979b4f commit ed6854b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/components/services/qiniu-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ angular.module('web').factory('QiniuClient', [

function isQueryRegionAPIAvaiable(ucUrl) {
return new Promise((resolve) => {
Region.query({ accessKey: '', bucketName: '', ucUrl: ucUrl }).then(() => {
const option = {
accessKey: '', bucketName: '', ucUrl: ucUrl,
requestCallback: debugRequest(KODO_MODE), responseCallback: debugResponse(KODO_MODE),
};
Region.query(option).then(() => {
resolve(true);
}, (err) => {
if (err.res && err.res.statusCode === 404) {
Expand Down

0 comments on commit ed6854b

Please sign in to comment.