diff --git a/common/js/http.js b/common/js/http.js index 1b46061..3749e46 100644 --- a/common/js/http.js +++ b/common/js/http.js @@ -164,8 +164,8 @@ export default { 'content-type': 'application/x-www-form-urlencoded;application/json' }, data: { - app_type, - app_type_name, + app_type: appType, + app_type_name: appTypeName, images: params.base64 }, dataType: 'json', @@ -186,8 +186,8 @@ export default { 'content-type': 'application/x-www-form-urlencoded;application/json' }, data: { - app_type, - app_type_name, + app_type: appType, + app_type_name: appTypeName, path: params.path }, dataType: 'json', @@ -207,8 +207,8 @@ export default { name: params.name || 'file', fileType: params.fileType || 'image', formData: { - app_type, - app_type_name, + app_type: appType, + app_type_name: appTypeName, }, header: { 'content-type': 'application/x-www-form-urlencoded;application/json' diff --git a/common/js/util.js b/common/js/util.js index cc2678a..3c38cb4 100644 --- a/common/js/util.js +++ b/common/js/util.js @@ -382,11 +382,11 @@ export default { * @param url */ upload: function (num, params, callback, url) { - const { app_type, app_type_name } = Platform.getPlatformInfo(); + const { appType, appTypeName } = Platform.getPlatformInfo(); var data = { token: store.state.token, - app_type: app_type, - app_type_name: app_type_name + app_type: appType, + app_type_name: appTypeName } data = Object.assign(data, params);