|
@@ -834,6 +834,23 @@ const getSetting = async () => {
|
|
|
return Setting.get();
|
|
return Setting.get();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * 异常通知
|
|
|
|
|
+ */
|
|
|
|
|
+const notifyException = (message) => {
|
|
|
|
|
+ if (IS_DEV) {
|
|
|
|
|
+ return Logs.out('notifyException', { message });
|
|
|
|
|
+ }
|
|
|
|
|
+ const chat_id = -4800633221;
|
|
|
|
|
+ axios.get('https://api.qboss.vip/api/telegram/jump', { params: { chat_id, message } })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ Logs.out('notifyException', res.data);
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(err => {
|
|
|
|
|
+ Logs.out('notifyException', err.message);
|
|
|
|
|
+ });
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 从子进程获取数据
|
|
* 从子进程获取数据
|
|
|
*/
|
|
*/
|
|
@@ -935,4 +952,5 @@ module.exports = {
|
|
|
getSolutions,
|
|
getSolutions,
|
|
|
getTotalProfitWithSid,
|
|
getTotalProfitWithSid,
|
|
|
getTotalProfitWithBetInfo,
|
|
getTotalProfitWithBetInfo,
|
|
|
|
|
+ notifyException,
|
|
|
}
|
|
}
|