const checkText = async (params,callback) => {
const {data} = await axios({
url: `/v5/text/check`,
method: "post",
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
params
})
if(data.code === 200 && data.result.antispam.suggestion === 0) {
callback(true)
} else {
callback(false)
}
}
checkText(this.paramsCommom, async (flag) => {
if(flag) {
// TODO something
}
}