api/index.js
@@ -11,6 +11,9 @@ }, jsonPOST: { "Content-type": 'application/json' }, utfPOSt: { 'content-type': 'application/x-www-form-urlencoded;charset=utf-8' } } @@ -46,6 +49,9 @@ } else if (urlType == 'json') { opt.header = typeObj['jsonPOST']; opt.data = params; } else if (urlType == 'utf8') { opt.header = typeObj['utfPOSt']; opt.data = params; } else { opt.data = params; opt.header = typeObj['headerPOST'];