@lzpenguin/economy 1.0.2 → 1.0.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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -92,11 +92,11 @@ export class RiffleEconomy {
92
92
  const data = await response.json();
93
93
 
94
94
  // 检查响应中是否有错误
95
- if (data.code !== 0) {
95
+ if (data.code !== 200) {
96
96
  throw new Error(data.message || 'API request failed');
97
97
  }
98
98
 
99
- return data.data;
99
+ return data.data
100
100
  } catch (error) {
101
101
  console.error('[RiffleEconomy] Request failed:', error);
102
102
  throw error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lzpenguin/economy",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Riffle 经济系统客户端 SDK",
5
5
  "license": "ISC",
6
6
  "author": "lzpenguin",