small clean
This commit is contained in:
@@ -157,15 +157,12 @@ export default abstract class BaseRestClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const preparedRequestParams = await this.prepareSignParams(
|
const signResult = await this.prepareSignParams(params, isPublicApi);
|
||||||
params,
|
|
||||||
isPublicApi
|
|
||||||
);
|
|
||||||
|
|
||||||
if (method === 'GET') {
|
if (method === 'GET') {
|
||||||
options.params = preparedRequestParams.paramsWithSign;
|
options.params = signResult.paramsWithSign;
|
||||||
} else {
|
} else {
|
||||||
options.data = preparedRequestParams.paramsWithSign;
|
options.data = signResult.paramsWithSign;
|
||||||
}
|
}
|
||||||
|
|
||||||
return axios(options)
|
return axios(options)
|
||||||
|
|||||||
Reference in New Issue
Block a user