liuweiliang / qiniuaudit
There is no license information available for the latest version (dev-master) of this package.
dev-master
2021-09-03 02:28 UTC
Requires
- liuweiliang/qiniuaudit: dev-master
This package is auto-updated.
Last update: 2025-03-29 01:11:24 UTC
README
1.引入包
1.composer require liuweiliang/qiniuaudit dev-master
2.新增服务
2.config/app.php
Liuweiliang\Liuweiliang\QiNiuAuditProvider::class
3.发布配置文件
php artisan vendor:publish
选择发布服务序号:
Liuweiliang\Liuweiliang\QiNiuAuditProvider 的 序号
更新 env
QINIU_ACCOUNNT = 你的账号
QINIU_PASSWORD = 你的密码
文本审核
\Liuweiliang\Liuweiliang\Services\AuditTextService::getInstance()->setMethod('POST')->setQuery('文本内容')->send();// 200字以内
图片审核
\Liuweiliang\Liuweiliang\Services\AuditTextService::getInstance()->setMethod('POST')->setQuery('图片地址')->send();
音频审核
\Liuweiliang\Liuweiliang\Services\AuditAudioService::getInstance()->setMethod('POST')->setQuery('音频地址')->send();//推送数据到 七牛云
返回 音频id($audio_id) 用于查询 音频结果
\Liuweiliang\Liuweiliang\Services\AuditAudioService::getInstance()->auditResult($audio_id)//查询音频审核结果
视频审核
\Liuweiliang\Liuweiliang\Services\AuditVideoService::getInstance()->setMethod('POST')->setQuery('视频地址')->send();//推送数据到 七牛云
返回 视频id($video_id) 用于查询 视频结果
\Liuweiliang\Liuweiliang\Services\AuditAudioService::getInstance()->videoResult($video_id)//查询视频审核结果