@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.
- package/index.js +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 !==
|
|
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;
|