Commit 1c0b5635 authored by 杨思琦's avatar 杨思琦

fix: 接口更新

parent c50899f0
Pipeline #66718 passed with stages
import { request } from '@wisdom-utils/utils';
import * as constants from '../../constants';
const API = {
GET_INFORMATION:
'/PandaCore/GCK/Message/GetInformationInfo',
GET_MQTT_SITE_CODE:
'/PandaOMS/OMS/HostManager/GetEmqtConfig',
GET_ALL_INFORMATION_INFO:
'/PandaCore/GCK/Message/GetAllInformationInfo',
POST_INFORMATION_STATUS:
'/PandaCore/GCK/Message/PostInformationStatus',
POST_ADD_OPTIONS:
'/CityInterface/rest/services/WisdomUnion.svc/CustomerManage/AddOption',
GET_CURRENT_INFO_TYPE:
'/PandaCore/GCK/Message/GetCurrentInfoType',
GET_INFORMATION: '/PandaCore/GCK/Message/GetInformationInfo',
GET_INFORMATION_THREE: '/PandaOMS/OMS/MessageConfig/GetInformationInfo',
GET_MQTT_SITE_CODE: '/PandaOMS/OMS/HostManager/GetHostConfig',
GET_ALL_INFORMATION_INFO: '/PandaCore/GCK/Message/GetAllInformationInfo',
GET_ALL_INFORMATION_INFO_THREE: '/PandaOMS/OMS/MessageConfig/GetAllInformationInfo',
POST_INFORMATION_STATUS: '/PandaCore/GCK/Message/PostInformationStatus',
POST_ADD_OPTIONS: '/CityInterface/rest/services/WisdomUnion.svc/CustomerManage/AddOption',
GET_CURRENT_INFO_TYPE: '/PandaCore/GCK/Message/GetCurrentInfoType',
};
const notificationService = {
......@@ -23,7 +19,8 @@ const notificationService = {
type: constants.REQUEST_HTTP,
},
getInformationInfo: {
url: API.GET_INFORMATION,
url: () =>
window?.globalConfig?.mqtt_mess?.MessageLevel === '3.0' ? API.GET_INFORMATION_THREE : API.GET_INFORMATION,
method: constants.REQUEST_METHOD_GET,
type: constants.REQUEST_HTTP,
},
......@@ -33,7 +30,10 @@ const notificationService = {
type: constants.REQUEST_HTTP,
},
getAllInformationInfo: {
url: API.GET_ALL_INFORMATION_INFO,
url: () =>
window?.globalConfig?.mqtt_mess?.MessageLevel === '3.0'
? API.GET_ALL_INFORMATION_INFO_THREE
: API.GET_ALL_INFORMATION_INFO,
method: constants.REQUEST_METHOD_GET,
type: constants.REQUEST_HTTP,
},
......@@ -49,5 +49,4 @@ const notificationService = {
},
};
export default notificationService;
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