feat: 充值重构+AI图表修复+安全加固+路由清理
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* If you want to enable logs from datafeed set it to `true`
|
||||
*/
|
||||
var isLoggingEnabled = false;
|
||||
export function logMessage(message) {
|
||||
if (isLoggingEnabled) {
|
||||
var now = new Date();
|
||||
console.log(now.toLocaleTimeString() + "." + now.getMilliseconds() + "> " + message);
|
||||
}
|
||||
}
|
||||
export function getErrorMessage(error) {
|
||||
if (error === undefined) {
|
||||
return '';
|
||||
}
|
||||
else if (typeof error === 'string') {
|
||||
return error;
|
||||
}
|
||||
return error.message;
|
||||
}
|
||||
Reference in New Issue
Block a user