Skip to content

Commit 1d8a592

Browse files
authored
Merge pull request #189 from juvenn/feat/signup-sms
修复验证码登录或注册问题
2 parents f1492b1 + 8bfa22a commit 1d8a592

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
0.10.2 发布日期:2019-06-24
3+
----
4+
5+
* 修复 signUpOrLoginByMobilePhone 登录问题
6+
27
0.10.1 发布日期:2019-06-24
38
----
49

src/LeanCloud/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Client {
2424
/**
2525
* Client version
2626
*/
27-
const VERSION = '0.10.1';
27+
const VERSION = '0.10.2';
2828

2929
/**
3030
* API Version string

src/LeanCloud/User.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,8 @@ public static function signUpOrLoginByMobilePhone($phoneNumber, $smsCode) {
480480
));
481481
$user = new static();
482482
$user->mergeAfterFetch($resp);
483-
User::saveCurrentUser($user);
483+
static::saveCurrentUser($user);
484+
return $user;
484485
}
485486

486487
/*

0 commit comments

Comments
 (0)