feat: custom-censor-check (#2437)
* feat: custom-censor-check * chore: adjust
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { POST } from './plusRequest';
|
||||
|
||||
export const postTextCensor = (data: { text: string }) =>
|
||||
POST<{ code?: number; message: string }>('/common/censor/text_baidu', data)
|
||||
POST<{ code?: number; message: string }>('/common/censor/check', data)
|
||||
.then((res) => {
|
||||
if (res?.code === 5000) {
|
||||
return Promise.reject(res);
|
||||
|
||||
Reference in New Issue
Block a user