koishi-plugin-mai-ocr
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -59,2 +59,4 @@ "use strict"; | ||
.action(async ({ session }, img) => { | ||
if (!img) | ||
return `输入指令时需要带上识别(翻译)图片`; | ||
const text = img.match(/src="([^"]*)"/)[1]; | ||
@@ -104,3 +106,3 @@ //定义变量 | ||
const kSigning = sha256("tc3_request", kService); | ||
const signature = sha256(stringToSign, kSigning, "hex"); | ||
const signature = sha256(stringToSign, kSigning); | ||
//拼接 Authorization | ||
@@ -107,0 +109,0 @@ const authorization = algorithm + |
{ | ||
"name": "koishi-plugin-mai-ocr", | ||
"description": "通过腾讯的ocr接口进行文字识别,并且提供翻译功能", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "typings": "lib/index.d.ts", |
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
12841
299