@curless/sinocare-demo 0.62.2 → 0.62.3
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/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -281,6 +281,7 @@ var CHECKOUT_CARD_HTML = Buffer.from(
|
|
|
281
281
|
|
|
282
282
|
// src/index.ts
|
|
283
283
|
var API_BASE = (process.env.AGENTBANK_API_URL ?? "https://mcp.curless.ai").replace(/\/$/, "");
|
|
284
|
+
var WALLET_BASE = (process.env.BUYER_WALLET_PUBLIC_URL ?? API_BASE).replace(/\/$/, "");
|
|
284
285
|
var SINOCARE = `${API_BASE}/sinocare`;
|
|
285
286
|
var acp = (merchantId) => {
|
|
286
287
|
if (!TOKEN) throw new Error("AGENTBANK_AGENT_TOKEN is not set");
|
|
@@ -1247,7 +1248,7 @@ server.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
1247
1248
|
ordered: false,
|
|
1248
1249
|
awaitingPayment: true,
|
|
1249
1250
|
message: "\u5728\u6D4F\u89C8\u5668\u91CC\u6253\u5F00\u8FD9\u4E2A\u94FE\u63A5,\u770B\u6E05\u91D1\u989D\u518D\u6279\u51C6\u3002\u8FD9\u91CC\u8FD8\u6CA1\u6709\u6263\u4EFB\u4F55\u6B3E\u3002",
|
|
1250
|
-
payUrl: `${
|
|
1251
|
+
payUrl: `${WALLET_BASE}/buyer/pay?session=${encodeURIComponent(session.sessionId)}`,
|
|
1251
1252
|
sessionId: session.sessionId,
|
|
1252
1253
|
product: session.name,
|
|
1253
1254
|
total: session.amountDisplay,
|