update
This commit is contained in:
@ -63,12 +63,12 @@ export interface InewsDetail {
|
||||
title: string
|
||||
}
|
||||
}
|
||||
export async function newsDetail(id:string):Promise<result<InewsDetail>>{
|
||||
export async function newsDetail(id:string, config: IWebsiteConfig):Promise<result<InewsDetail>>{
|
||||
const client = getRpcClient()
|
||||
const result = await client.call('news/view', {
|
||||
id:id
|
||||
id:id,
|
||||
app_id: config.id
|
||||
})
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user