Authored by weiqingting

提交

@@ -212,7 +212,7 @@ function __requestOption(req, apiOpt, config, consts) { @@ -212,7 +212,7 @@ function __requestOption(req, apiOpt, config, consts) {
212 options.headers = { 212 options.headers = {
213 'Content-Type' : 'application/x-www-form-urlencoded' 213 'Content-Type' : 'application/x-www-form-urlencoded'
214 } 214 }
215 - } if (apiOpt.query) { 215 + } else if (apiOpt.query) {
216 //不做任何事 216 //不做任何事
217 } else { 217 } else {
218 options.body = JSON.stringify(data); 218 options.body = JSON.stringify(data);
@@ -212,7 +212,7 @@ function __requestOption(req, apiOpt, config, consts) { @@ -212,7 +212,7 @@ function __requestOption(req, apiOpt, config, consts) {
212 options.headers = { 212 options.headers = {
213 'Content-Type' : 'application/x-www-form-urlencoded' 213 'Content-Type' : 'application/x-www-form-urlencoded'
214 } 214 }
215 - } if (apiOpt.query) { 215 + } else if (apiOpt.query) {
216 //不做任何事 216 //不做任何事
217 } else { 217 } else {
218 options.body = JSON.stringify(data); 218 options.body = JSON.stringify(data);