Skip to content

Commit

Permalink
Merge pull request #188 from juvenn/feat/signup-sms
Browse files Browse the repository at this point in the history
修复手机注册或登录问题
  • Loading branch information
juvenn authored Jun 24, 2019
2 parents 8a091d2 + 5a5e426 commit f1492b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

0.10.1 发布日期:2019-06-24
----

* 修复 signUpOrLoginByMobilePhone 登录问题

0.10.0 发布日期:2019-06-24
----

Expand Down
2 changes: 1 addition & 1 deletion src/LeanCloud/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Client {
/**
* Client version
*/
const VERSION = '0.10.0';
const VERSION = '0.10.1';

/**
* API Version string
Expand Down
2 changes: 1 addition & 1 deletion src/LeanCloud/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ public static function signUpOrLoginByMobilePhone($phoneNumber, $smsCode) {
"smsCode" => $smsCode
));
$user = new static();
$user->mergeAfterFetch($data);
$user->mergeAfterFetch($resp);
User::saveCurrentUser($user);
}

Expand Down

0 comments on commit f1492b1

Please sign in to comment.