clawaid 1.1.21 → 1.1.22

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/web/index.html +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawaid",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "description": "AI-powered diagnostic and repair tool for OpenClaw",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
package/web/index.html CHANGED
@@ -1190,10 +1190,13 @@
1190
1190
  // ═══ Paywall ══════════════════════════════════════════════════════════════
1191
1191
  function showPaywall(data) {
1192
1192
  var STRIPE_URL = 'https://buy.stripe.com/8x26oJ6WrdNnd9T4hI0oM01';
1193
- var priceStr = data.price || '$1.99';
1194
1193
  var credits = data.credits || 5;
1194
+ // Chinese users often use proxies (for OpenClaw API access), so CF-IPCountry
1195
+ // may incorrectly report US/JP/etc. Use frontend language detection as override.
1195
1196
  var payMethod = data.payMethod || (data.isChinese ? 'xunhupay' : 'stripe');
1197
+ if (isZh && payMethod !== 'xunhupay') payMethod = 'xunhupay';
1196
1198
  var isCN = payMethod === 'xunhupay';
1199
+ var priceStr = isCN ? '¥9.9' : (data.price || '$1.99');
1197
1200
 
1198
1201
  var buyBtnHtml;
1199
1202
  if (isCN) {