api/index.js
@@ -45,6 +45,7 @@
      opt.header = typeObj['headerPOST'];
   } else if (urlType == 'json') {
      opt.header = typeObj['jsonPOST'];
      opt.data = params;
   } else {
      opt.data = params;
      opt.header = typeObj['headerPOST'];