v0.3.34: 每日汇报增加推送通道选择UI
This commit is contained in:
@@ -346,9 +346,10 @@ export async function getAllNotifierProviders(): Promise<Record<string, { name:
|
||||
|
||||
export async function testNotifyChannel(
|
||||
channelType: string,
|
||||
configId?: number
|
||||
configId?: number,
|
||||
params?: Record<string, any>
|
||||
): Promise<{ success: boolean; message: string }> {
|
||||
const { data } = await api.post('/admin/notify/test', { channelType, configId })
|
||||
const { data } = await api.post('/admin/notify/test', { channelType, configId, params })
|
||||
return data
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user