mirror of
https://github.com/haorendashu/nowser.git
synced 2025-12-17 09:54:19 +01:00
remote id blank check from android sign
This commit is contained in:
@@ -97,6 +97,8 @@ class AndroidSignerContentResolverProvider extends AndroidContentProvider
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// print("appType $appType code $code authtype $authType");
|
||||||
|
|
||||||
MatrixCursorData? data;
|
MatrixCursorData? data;
|
||||||
if (authType == AuthType.DECRYPT_ZAP_EVENT) {
|
if (authType == AuthType.DECRYPT_ZAP_EVENT) {
|
||||||
// direct reject decrypt_zap_event query!
|
// direct reject decrypt_zap_event query!
|
||||||
|
|||||||
@@ -56,14 +56,14 @@ mixin AndroidSignerMixin on PermissionCheckMixin {
|
|||||||
var extra = intent.extra;
|
var extra = intent.extra;
|
||||||
|
|
||||||
if (intent.extra != null) {
|
if (intent.extra != null) {
|
||||||
var callId = extra!["id"];
|
var callId = extra![
|
||||||
|
"id"]; // sometime client don't send this id, don't need to check blank, just pass it return.
|
||||||
var authTypeStr = extra["type"];
|
var authTypeStr = extra["type"];
|
||||||
var currentUser = extra["current_user"];
|
var currentUser = extra["current_user"];
|
||||||
var pubkey = extra["pubKey"];
|
var pubkey = extra["pubKey"];
|
||||||
pubkey ??= extra["pubkey"];
|
pubkey ??= extra["pubkey"];
|
||||||
|
|
||||||
if (StringUtil.isNotBlank(callId) &&
|
if (StringUtil.isNotBlank(authTypeStr) &&
|
||||||
StringUtil.isNotBlank(authTypeStr) &&
|
|
||||||
StringUtil.isNotBlank(code)) {
|
StringUtil.isNotBlank(code)) {
|
||||||
var authType = AuthType.GET_PUBLIC_KEY;
|
var authType = AuthType.GET_PUBLIC_KEY;
|
||||||
if (authTypeStr == "get_public_key") {
|
if (authTypeStr == "get_public_key") {
|
||||||
|
|||||||
Reference in New Issue
Block a user