Skip to content

Commit b7f0396

Browse files
p_yxyxwwangpowy1993
authored andcommitted
feat: 保持和ios和鸿蒙一致,accessToken不为空则认为登录成功
1 parent 31fe4e0 commit b7f0396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/io/github/v7lin/tencent_kit/TencentKitPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public void onComplete(Object o) {
211211
final String accessToken = !object.isNull("access_token") ? object.getString("access_token") : null;
212212
final int expiresIn = !object.isNull("expires_in") ? object.getInt("expires_in") : 0;
213213
final long createAt = System.currentTimeMillis();
214-
if (!TextUtils.isEmpty(openId) && !TextUtils.isEmpty(accessToken)) {
214+
if (!TextUtils.isEmpty(accessToken)) {
215215
map.put("ret", TencentRetCode.RET_SUCCESS);
216216
map.put("openid", openId);
217217
map.put("access_token", accessToken);

0 commit comments

Comments
 (0)