Skip to content

Commit

Permalink
format document
Browse files Browse the repository at this point in the history
  • Loading branch information
moesoha committed Sep 10, 2017
1 parent efadc3a commit 32dd7d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ var OIHSDK = function (key, secret, interfaceUrl) {
if (interfaceUrl) {
config.oiinhand.interfaceUrl = interfaceUrl;
}
let params={};
if(key){
params.apikey=config.oiinhand.auth.key;
var params = {};
if (key) {
params.apikey = config.oiinhand.auth.key;
}
if(secret){
params.apisecret=config.oiinhand.auth.secret;
if (secret) {
params.apisecret = config.oiinhand.auth.secret;
}
var axiosInstance = axios.create({
baseURL: config.oiinhand.interfaceUrl,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oiinhand-sdk-axios",
"version": "1.1.2",
"version": "1.1.3",
"description": "The Node.js SDK for OI in Hand API",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 32dd7d2

Please sign in to comment.