aliyun-cdi
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -12,3 +12,3 @@ var crypto = require('crypto'); | ||
// ImageUrl: '["http://dun.163.com/res/sample/sex_2.jpg"]', | ||
Scene: JSON.stringify(params.Scene), | ||
Scene: JSON.stringify(params.Scene || []), | ||
// RegionId: 'cn-hangzhou', | ||
@@ -25,3 +25,3 @@ AccessKeyId: params.AccessKeyID, | ||
if (params.Action === 'ImageDetection') { | ||
defaultParams.ImageUrl = encodeStr(params.ImageUrl); | ||
defaultParams.ImageUrl = encodeStr(JSON.stringify(params.ImageUrl || [])); | ||
} else if (params.Action === 'TextKeywordFilter') { | ||
@@ -28,0 +28,0 @@ defaultParams.Text = encodeStr(params.Text); |
{ | ||
"name": "aliyun-cdi", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "阿里云内容检测API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,3 +9,3 @@ var request = require('request'); | ||
Scene: ['ocr'], | ||
ImageUrl: '["http://ww1.sinaimg.cn/mw690/5375acf5gw1f6amimko3hj20x20lsagc.jpg"]' | ||
ImageUrl: ['http://ww1.sinaimg.cn/mw690/5375acf5gw1f6amimko3hj20x20lsagc.jpg'] | ||
}); | ||
@@ -42,3 +42,3 @@ | ||
Scene: ['porn'], | ||
ImageUrl: '["http://dun.163.com/res/sample/sex_2.jpg"]' | ||
ImageUrl: ['http://dun.163.com/res/sample/sex_2.jpg'] | ||
}); | ||
@@ -45,0 +45,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6423