log
This commit is contained in:
@@ -19,7 +19,7 @@ const getAPIAuthBaseUrl = () => {
|
||||
}
|
||||
return rs;
|
||||
}
|
||||
const getHeaderUserAgent = (options?: {
|
||||
export const getHeaderUserAgent = (options?: {
|
||||
menuId?: number,
|
||||
apiType?: string
|
||||
}) => {
|
||||
@@ -32,12 +32,11 @@ const getHeaderUserAgent = (options?: {
|
||||
let appVersion = '1.0.0';
|
||||
let browserInformation = result.browser.name;
|
||||
|
||||
return `${os} ${deviceType} ${deviceID} ${appVersion} ${browserInformation} ${options?.menuId} ${options?.apiType}`;
|
||||
return `${os} ${deviceType} ${deviceID} ${appVersion} ${browserInformation} ${options?.menuId || ''} ${options?.apiType || ''}`;
|
||||
};
|
||||
|
||||
export const API_BASE_URL = getAPIBaseUrl();
|
||||
export const API_AUTH_BASE_URL = getAPIAuthBaseUrl();
|
||||
export const API_URL_KEY = 'nmsa';
|
||||
export const HEADER_USER_AGENT = getHeaderUserAgent();
|
||||
export const API_PARAM = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user