@lzpenguin/economy 1.0.0 → 1.0.2

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 (3) hide show
  1. package/README.md +1 -1
  2. package/index.js +1 -1
  3. package/package.json +1 -2
package/README.md CHANGED
@@ -15,7 +15,7 @@ import { RiffleEconomy } from '@lzpenguin/economy';
15
15
 
16
16
  // 创建实例(token 会自动从 URL 参数 ?token=xxx 中读取)
17
17
  const economy = new RiffleEconomy({
18
- baseURL: 'https://api.riffle.app'
18
+ baseURL: 'api.riffle.app' // 不要带https://前缀
19
19
  });
20
20
 
21
21
  // 查询账户余额
package/index.js CHANGED
@@ -67,7 +67,7 @@ export class RiffleEconomy {
67
67
  * @returns {Promise<Object>} 响应数据
68
68
  */
69
69
  async _request(path, body = null) {
70
- const url = `${this.baseURL}${path}`;
70
+ const url = `https://${this.baseURL}${path}`;
71
71
 
72
72
  const options = {
73
73
  method: 'POST',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lzpenguin/economy",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Riffle 经济系统客户端 SDK",
5
5
  "license": "ISC",
6
6
  "author": "lzpenguin",
@@ -34,4 +34,3 @@
34
34
  "registry": "https://registry.npmjs.org/"
35
35
  }
36
36
  }
37
-