mcp-adder-simple 1.1.7 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/handlers/tools.js +1 -1
- package/package.json +1 -1
- package/tools/sup8.js +2 -2
package/handlers/tools.js
CHANGED
package/package.json
CHANGED
package/tools/sup8.js
CHANGED
|
@@ -17,7 +17,7 @@ async function sup8Decode(code, enterpriseNo) {
|
|
|
17
17
|
if (typeof code !== 'string' || typeof enterpriseNo !== 'string') {
|
|
18
18
|
throw new Error('参数必须是字符串');
|
|
19
19
|
}
|
|
20
|
-
const url = `${
|
|
20
|
+
const url = `${sup8OpenHost}/digit/v1/decode/decode?digit=${encodeURIComponent(code)}&enterpriseNo=${encodeURIComponent(enterpriseNo)}`;
|
|
21
21
|
|
|
22
22
|
const result = await get(url);
|
|
23
23
|
|
|
@@ -44,7 +44,7 @@ async function sup8QueryCode(code, enterpriseNo) {
|
|
|
44
44
|
|
|
45
45
|
// 构建缓存键和 URL
|
|
46
46
|
const cacheKey = `query:${code}:${enterpriseNo}`;
|
|
47
|
-
const url = `${
|
|
47
|
+
const url = `${sup8OpenHost}/digit/v2/digit/get-digit-info?code=${encodeURIComponent(code)}&enterpriseNo=${encodeURIComponent(enterpriseNo)}`;
|
|
48
48
|
|
|
49
49
|
// 先尝试从缓存获取
|
|
50
50
|
const cachedData = getCache(cacheKey);
|