@@ -1801,6 +1801,7 @@ function DescribeDocProcessQueues() {
1801
1801
* 更新文档转码队列
1802
1802
*/
1803
1803
function UpdateDocProcessQueue ( ) {
1804
+ // 任务所在的队列 ID,请使用查询队列(https://cloud.tencent.com/document/product/460/46946)获取或前往万象控制台(https://cloud.tencent.com/document/product/460/46487)在存储桶中查询
1804
1805
let queueId = 'p31299c0b3f4742dda2fc1be3ea40xxxx' // 需要更新的队列ID
1805
1806
let host = config . Bucket + '.ci.' + config . Region + '.myqcloud.com' ;
1806
1807
let url = 'https://' + host + '/docqueue/' + queueId ;
@@ -2616,8 +2617,7 @@ function SyncAuditImageObject() {
2616
2617
Query : {
2617
2618
'ci-process' : 'sensitive-content-recognition' ,
2618
2619
// 'detect-url': '<url>',
2619
- // 'biz-type': '<type>', // 审核策略 id
2620
- // 'detect-type': 'porn,ads', // 审核类型 porn,ads
2620
+ 'biz-type' : '' , // 审核策略 id
2621
2621
// 'interval': 5, // gif截取间隔帧数
2622
2622
// 'max-frames': 5, // gif最大截帧数
2623
2623
}
@@ -2654,7 +2654,6 @@ function SyncAuditImageUrl() {
2654
2654
'ci-process' : 'sensitive-content-recognition' ,
2655
2655
'detect-url' : 'https://ftp.bmp.ovh/imgs/2021/09/ee4e63607465ed8d.jpg' ,
2656
2656
// 'biz-type': '<type>', // 审核策略 id
2657
- // 'detect-type': 'porn,ads', // 审核类型 porn,ads
2658
2657
// 'interval': 5, // gif截取间隔帧数
2659
2658
// 'max-frames': 5, // gif最大截帧数
2660
2659
}
@@ -2683,9 +2682,8 @@ function SyncAuditImageUrls() {
2683
2682
Object : 'audit/2.jpg' ,
2684
2683
} ] ,
2685
2684
Conf : {
2686
- DetectType : 'Porn,Ads' ,
2687
2685
// Callback: '<url>', // 回调地址
2688
- // BizType: '', // 审核策略
2686
+ BizType : '' , // 审核策略
2689
2687
} ,
2690
2688
} ,
2691
2689
} ) ,
@@ -2708,9 +2706,8 @@ function SyncAuditTextContent() {
2708
2706
Content : Buffer . from ( '高潮' ) . toString ( 'base64' ) ,
2709
2707
} ,
2710
2708
Conf : {
2711
- DetectType : 'Porn,Terrorism,Politics,Ads,Illegal,Abuse' ,
2712
2709
// Callback: '<url>', // 回调地址
2713
- // BizType: '', // 审核策略
2710
+ BizType : '' , // 审核策略
2714
2711
} ,
2715
2712
} ,
2716
2713
} ) ,
@@ -2735,9 +2732,8 @@ function CreateAuditJob() {
2735
2732
Object : objectKey ,
2736
2733
} ,
2737
2734
Conf : {
2738
- DetectType : 'Porn,Ads' ,
2739
2735
// Callback: '<url>', // 回调地址
2740
- // BizType: '', // 审核策略
2736
+ BizType : '' , // 审核策略
2741
2737
} ,
2742
2738
} ,
2743
2739
} ) ,
@@ -3033,6 +3029,7 @@ function getAsrQueue() {
3033
3029
3034
3030
// 更新语音识别队列
3035
3031
function putAsrQueue ( ) {
3032
+ // 任务所在的队列 ID,请使用查询队列(https://cloud.tencent.com/document/product/460/46946)获取或前往万象控制台(https://cloud.tencent.com/document/product/460/46487)在存储桶中查询
3036
3033
var queueId = 'pcc77499e85c311edb9865254008618d9' ;
3037
3034
var host = config . Bucket + '.ci.' + config . Region + '.myqcloud.com/asrqueue/' + queueId ;
3038
3035
var url = 'https://' + host ;
@@ -3344,6 +3341,7 @@ function createImageInspectJob() {
3344
3341
3345
3342
// 更新图片处理队列
3346
3343
function updatePicProcessQueue ( ) {
3344
+ // 任务所在的队列 ID,请使用查询队列(https://cloud.tencent.com/document/product/460/46946)获取或前往万象控制台(https://cloud.tencent.com/document/product/460/46487)在存储桶中查询
3347
3345
var queueId = 'p36e92002ff5b418497076f31d33d4xxx' ;
3348
3346
var host = config . Bucket + '.ci.' + config . Region + '.myqcloud.com/picqueue/' + queueId ;
3349
3347
var url = 'https://' + host ;
@@ -3455,7 +3453,6 @@ function createDocProcessJobs() {
3455
3453
Object : '1/文档转码_${Number}.jpg' , // 转码后存到cos的路径
3456
3454
} ,
3457
3455
} ,
3458
- QueueId : 'p58639252a2cf45aba7a7f3335ffe3xxx' , // 替换成自己的queueId
3459
3456
}
3460
3457
} ) ;
3461
3458
cos . request ( {
@@ -3494,7 +3491,6 @@ function describeDocProcessJobs() {
3494
3491
Key : 'doc_jobs' ,
3495
3492
Url : url ,
3496
3493
Query : {
3497
- queueId : 'p58639252a2cf45aba7a7f3335ffe3xxx' , // 替换成自己的queueId
3498
3494
tag : 'DocProcess' ,
3499
3495
} ,
3500
3496
} ,
@@ -3505,6 +3501,7 @@ function describeDocProcessJobs() {
3505
3501
3506
3502
// 更新文档预览队列
3507
3503
function updateDocProcessQueue ( ) {
3504
+ // 任务所在的队列 ID,请使用查询队列(https://cloud.tencent.com/document/product/460/46946)获取或前往万象控制台(https://cloud.tencent.com/document/product/460/46487)在存储桶中查询
3508
3505
var queueId = 'p58639252a2cf45aba7a7f3335ffe3xxx' ; // 替换成自己的队列id
3509
3506
var host = config . Bucket + '.ci.' + config . Region + '.myqcloud.com/docqueue/' + queueId ;
3510
3507
var url = 'https://' + host ;
@@ -3618,6 +3615,7 @@ function createFileProcessBucket() {
3618
3615
3619
3616
// 更新文件处理队列
3620
3617
function updateFileProcessQueue ( ) {
3618
+ // 任务所在的队列 ID,请使用查询队列(https://cloud.tencent.com/document/product/460/46946)获取或前往万象控制台(https://cloud.tencent.com/document/product/460/46487)在存储桶中查询
3621
3619
var queueId = 'p5d0dc85debe149febdd6fd9b208aaxxx' ;
3622
3620
var host = config . Bucket + '.ci.' + config . Region + '.myqcloud.com/file_queue/' + queueId ;
3623
3621
var url = 'https://' + host ;
0 commit comments