overtrue / laravel-qcloud-content-audit

腾讯云内容安全(文字图片内容审核)服务
MIT License
44 stars 5 forks source link

文字审核是有字数限制的。 #10

Closed gyp719 closed 1 year ago

gyp719 commented 1 year ago

文字审核是有字数限制的, 超过字数限时是会提示错误的, 是否可以对字符进行切割,分块处理?

image

overtrue commented 1 year ago

其实模型 trait 里是这么做的,但是从职责方面考虑,单独的检测函数没有默认做分段处理,你看看参考这里写一下?

https://github.com/overtrue/laravel-qcloud-content-audit/blob/master/src/Traits/CheckTextWithTms.php#L32-L41

gyp719 commented 1 year ago

其实模型 trait 里是这么做的,但是从职责方面考虑,单独的检测函数没有默认做分段处理,你看看参考这里写一下?

https://github.com/overtrue/laravel-qcloud-content-audit/blob/master/src/Traits/CheckTextWithTms.php#L32-L41

好的, 谢谢。