worklight adapter 修改获取数据编码格式

阅读更多
function UpdateAppMyLove(empCode,appCode,device_UUID){
	var input = {
		    method : 'get',
		    returnedContentType : 'json',
            returnedContentEncoding:"GBK",
		    path : "/MAM/webservice/UpdateAppMyLove",
		    parameters: {userCode:empCode,appID:appCode,deviceUUID:device_UUID}, 
		    body : {
				contentType : 'text/xml; charset=utf-8'
			},
		};
	WL.Logger.info("MAMAdapter_UpdateAppMyLove_"+empCode+" begin:"+new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SS").format(new java.util.Date()));
	var res=WL.Server.invokeHttp(input);
	WL.Logger.info("MAMAdapter_UpdateAppMyLove_"+empCode+" end:"+new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SS").format(new java.util.Date()));
	return res;
}

你可能感兴趣的:(worklight adapter 修改获取数据编码格式)