Commit c196544c by Kang Donghun

API通信関数修正、コンスタント修正

parent 0f932207
...@@ -224,6 +224,11 @@ CHK_Common.cmsAjax = function (url, param, async = true, callback, errorCallback ...@@ -224,6 +224,11 @@ CHK_Common.cmsAjax = function (url, param, async = true, callback, errorCallback
dataType: 'json', dataType: 'json',
cache: false, cache: false,
async: async, async: async,
crossDomain: true,
beforeSend: function(xhr) {
xhr.setRequestHeader('X-AGT-AppId', sysSettings.appName);
xhr.setRequestHeader('X-AGT-AppVersion', sysSettings.appVersion);
},
success: function (result) { success: function (result) {
if (result.status == '200') { if (result.status == '200') {
if (callback) callback(result); if (callback) callback(result);
......
...@@ -46,10 +46,11 @@ CONSTANT.ADD_REPORT_FLG = { ...@@ -46,10 +46,11 @@ CONSTANT.ADD_REPORT_FLG = {
}; };
CONSTANT.URL = { CONSTANT.URL = {
BASE_CMS: 'https://' + location.host + '/checkapi/web/', // BASE_CMS: 'https://' + location.host + '/checkapi/web/',
BASE_CMS: 'http://localhost:8080/acms/checkapi/web/',
BASE_WEB: 'abvw/html/', BASE_WEB: 'abvw/html/',
ALL_OPERATION_LIST: 'operationLIstWeb/getOperationList', ALL_OPERATION_LIST: 'operationListWeb/getOperationList',
AUTH_SESSION: 'getsession/checkAuthUser', AUTH_SESSION: 'getSession/checkAuthUser',
}; };
CONSTANT.LANG = { CONSTANT.LANG = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment