onebots 0.0.7 → 0.0.8

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.
@@ -109,7 +109,7 @@ class CommonAction {
109
109
  return this.action.callLogin.apply(this, ['login', password]);
110
110
  }
111
111
  async submitSmsCode(code) {
112
- return this.action.login.apply(this, ['submitSmsCode', code]);
112
+ return this.action.callLogin.apply(this, ['submitSmsCode', code]);
113
113
  }
114
114
  sendSmsCode() {
115
115
  return this.client.sendSmsCode();
@@ -70,7 +70,7 @@ class CommonAction {
70
70
  return this.action.callLogin.apply(this, ['login', password]);
71
71
  }
72
72
  async submitSmsCode(code) {
73
- return this.action.login.apply(this, ['submitSmsCode', code]);
73
+ return this.action.callLogin.apply(this, ['submitSmsCode', code]);
74
74
  }
75
75
  sendSmsCode() {
76
76
  return this.client.sendSmsCode();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onebots",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "基于oicq的多例oneBot实现",
5
5
  "main": "lib/index.js",
6
6
  "bin": {