Skip to content

Dev/demo #177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a19d5c0
feat: 新增cov命令
livehigh Jan 11, 2023
68e6748
fix: 补充d.ts
livehigh Feb 14, 2023
c8e7f46
feat: 补充ci智能语音和云查毒接口
livehigh Mar 8, 2023
cebec06
Merge branch 'dev/ci-chrisftian' into 'master' (merge request !1)
livehigh Mar 8, 2023
26fd07b
fix: 修复Body类型
livehigh Mar 23, 2023
37d4b3f
fix: 更新依赖库版本
livehigh Apr 13, 2023
a8be03a
upd: version
livehigh Apr 13, 2023
7190cc9
fix: 恢复版本
livehigh Apr 13, 2023
94c45aa
upd: 新增单测
livehigh Apr 18, 2023
b851586
upd: 新增单测
livehigh Apr 18, 2023
3243561
upd: 新增单测
livehigh Apr 18, 2023
a4045df
upd: 新增单测
livehigh Apr 18, 2023
8a4d29d
upd: 补充单测
livehigh Apr 19, 2023
210fcc6
upd: 补充单测
livehigh Apr 19, 2023
6a6acef
upd: 补充单测
livehigh Apr 19, 2023
f53b169
feat: uploadSliceItem透传headers
livehigh Apr 19, 2023
2997cd1
upd: 补充单测
livehigh Apr 19, 2023
51df582
upd: 补充单测
livehigh Apr 20, 2023
0ce1503
upd: 更好xml2js
livehigh Apr 20, 2023
df1518c
feat: 默认关闭FollowRedirect
livehigh Apr 21, 2023
a204537
upd: 补充图片处理、存储桶配置、文档处理、文件处理nodejs sdk (merge request !3)
May 8, 2023
078bd3e
fix: 更新XMLParser配置
livehigh May 15, 2023
634bfc7
fix: 更新XMLParser配置
livehigh May 15, 2023
b54590b
fix: 优化d.ts
livehigh May 15, 2023
d119b97
feat: 优化万象demo
livehigh Jul 12, 2023
cd5dde6
feat: 优化万象demo
livehigh Jul 12, 2023
b53c423
Merge remote-tracking branch 'github_tencent/master' into dev/demo
livehigh Jul 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -1801,6 +1801,7 @@ function DescribeDocProcessQueues() {
* 更新文档转码队列
*/
function UpdateDocProcessQueue() {
// 任务所在的队列 ID,请使用查询队列(https://cloud.tencent.com/document/product/460/46946)获取或前往万象控制台(https://cloud.tencent.com/document/product/460/46487)在存储桶中查询
let queueId = 'p31299c0b3f4742dda2fc1be3ea40xxxx' // 需要更新的队列ID
let host = config.Bucket + '.ci.' + config.Region + '.myqcloud.com';
let url = 'https://' + host + '/docqueue/' + queueId;
Expand Down Expand Up @@ -2616,8 +2617,7 @@ function SyncAuditImageObject() {
Query: {
'ci-process': 'sensitive-content-recognition',
// 'detect-url': '<url>',
// 'biz-type': '<type>', // 审核策略 id
// 'detect-type': 'porn,ads', // 审核类型 porn,ads
'biz-type': '', // 审核策略 id
// 'interval': 5, // gif截取间隔帧数
// 'max-frames': 5, // gif最大截帧数
}
Expand Down Expand Up @@ -2654,7 +2654,6 @@ function SyncAuditImageUrl() {
'ci-process': 'sensitive-content-recognition',
'detect-url': 'https://ftp.bmp.ovh/imgs/2021/09/ee4e63607465ed8d.jpg',
// 'biz-type': '<type>', // 审核策略 id
// 'detect-type': 'porn,ads', // 审核类型 porn,ads
// 'interval': 5, // gif截取间隔帧数
// 'max-frames': 5, // gif最大截帧数
}
Expand Down Expand Up @@ -2683,9 +2682,8 @@ function SyncAuditImageUrls() {
Object: 'audit/2.jpg',
}],
Conf: {
DetectType: 'Porn,Ads',
// Callback: '<url>', // 回调地址
// BizType: '', // 审核策略
BizType: '', // 审核策略
},
},
}),
Expand All @@ -2708,9 +2706,8 @@ function SyncAuditTextContent() {
Content: Buffer.from('高潮').toString('base64'),
},
Conf: {
DetectType: 'Porn,Terrorism,Politics,Ads,Illegal,Abuse',
// Callback: '<url>', // 回调地址
// BizType: '', // 审核策略
BizType: '', // 审核策略
},
},
}),
Expand All @@ -2735,9 +2732,8 @@ function CreateAuditJob() {
Object: objectKey,
},
Conf: {
DetectType: 'Porn,Ads',
// Callback: '<url>', // 回调地址
// BizType: '', // 审核策略
BizType: '', // 审核策略
},
},
}),
Expand Down Expand Up @@ -3033,6 +3029,7 @@ function getAsrQueue() {

// 更新语音识别队列
function putAsrQueue() {
// 任务所在的队列 ID,请使用查询队列(https://cloud.tencent.com/document/product/460/46946)获取或前往万象控制台(https://cloud.tencent.com/document/product/460/46487)在存储桶中查询
var queueId = 'pcc77499e85c311edb9865254008618d9';
var host = config.Bucket + '.ci.' + config.Region + '.myqcloud.com/asrqueue/' + queueId;
var url = 'https://' + host;
Expand Down Expand Up @@ -3344,6 +3341,7 @@ function createImageInspectJob() {

// 更新图片处理队列
function updatePicProcessQueue() {
// 任务所在的队列 ID,请使用查询队列(https://cloud.tencent.com/document/product/460/46946)获取或前往万象控制台(https://cloud.tencent.com/document/product/460/46487)在存储桶中查询
var queueId = 'p36e92002ff5b418497076f31d33d4xxx';
var host = config.Bucket + '.ci.' + config.Region + '.myqcloud.com/picqueue/' + queueId;
var url = 'https://' + host;
Expand Down Expand Up @@ -3455,7 +3453,6 @@ function createDocProcessJobs() {
Object: '1/文档转码_${Number}.jpg', // 转码后存到cos的路径
},
},
QueueId: 'p58639252a2cf45aba7a7f3335ffe3xxx', // 替换成自己的queueId
}
});
cos.request({
Expand Down Expand Up @@ -3494,7 +3491,6 @@ function describeDocProcessJobs() {
Key: 'doc_jobs',
Url: url,
Query: {
queueId: 'p58639252a2cf45aba7a7f3335ffe3xxx', // 替换成自己的queueId
tag: 'DocProcess',
},
},
Expand All @@ -3505,6 +3501,7 @@ function describeDocProcessJobs() {

// 更新文档预览队列
function updateDocProcessQueue() {
// 任务所在的队列 ID,请使用查询队列(https://cloud.tencent.com/document/product/460/46946)获取或前往万象控制台(https://cloud.tencent.com/document/product/460/46487)在存储桶中查询
var queueId = 'p58639252a2cf45aba7a7f3335ffe3xxx'; // 替换成自己的队列id
var host = config.Bucket + '.ci.' + config.Region + '.myqcloud.com/docqueue/' + queueId;
var url = 'https://' + host;
Expand Down Expand Up @@ -3618,6 +3615,7 @@ function createFileProcessBucket() {

// 更新文件处理队列
function updateFileProcessQueue() {
// 任务所在的队列 ID,请使用查询队列(https://cloud.tencent.com/document/product/460/46946)获取或前往万象控制台(https://cloud.tencent.com/document/product/460/46487)在存储桶中查询
var queueId = 'p5d0dc85debe149febdd6fd9b208aaxxx';
var host = config.Bucket + '.ci.' + config.Region + '.myqcloud.com/file_queue/' + queueId;
var url = 'https://' + host;
Expand Down
4 changes: 4 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1915,6 +1915,10 @@ Bulk:批量模式,恢复时间为24 - 48小时。 */
Expires?: number,
/** 是否使用全球加速 */
UseAccelerate?: boolean,
/** 调用操作存储桶和对象的 API 时自定义请求域名。可以使用模板,如"{Bucket}.cos.{Region}.myqcloud.com",即在调用 API 时会使用参数中传入的 Bucket 和 Region 进行替换。 */
Domain?: string,
/** http协议,枚举值'http:','https:' */
Protocol?: string,
}
/** getObjectUrl 接口返回值 */
interface GetObjectUrlResult {
Expand Down