增加userId参数

master
kangxuyao 2021-06-02 11:33:07 +08:00
parent fd900dca77
commit b07d449771
6 changed files with 20 additions and 13 deletions

View File

@ -91,6 +91,6 @@ kapt {
} }
dependencies { dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs') implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.finogeeks.lib:finapplet:2.27.0-alpha20210601v05' implementation 'com.finogeeks.lib:finapplet:2.27.0-alpha20210602v03'
implementation 'com.finogeeks.mop:plugins:2.27.0-alpha20210601v05' implementation 'com.finogeeks.mop:plugins:2.27.0-alpha20210601v05'
} }

View File

@ -59,12 +59,17 @@ public class BaseModule extends BaseApi {
if (disablePermission == null) { if (disablePermission == null) {
disablePermission = false; disablePermission = false;
} }
String userId = null;
if (param.get("userId") != null) {
userId = (String) param.get("userId");
}
FinAppConfig config = new FinAppConfig.Builder() FinAppConfig config = new FinAppConfig.Builder()
.setSdkKey(appkey) .setSdkKey(appkey)
.setSdkSecret(secret) .setSdkSecret(secret)
.setApiUrl(apiServer) .setApiUrl(apiServer)
.setApiPrefix(apiPrefix) .setApiPrefix(apiPrefix)
.setEncryptionType(cryptType) .setEncryptionType(cryptType)
.setUserId(userId)
.setDebugMode(BuildConfig.DEBUG) .setDebugMode(BuildConfig.DEBUG)
.setDisableRequestPermissions(disablePermission) .setDisableRequestPermissions(disablePermission)
.build(); .build();

View File

@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"mop","path":"/Users/beetle/Desktop/finogeeks/gitlab/finosprite/finclip-flutter-sdk/","dependencies":[]}],"android":[{"name":"mop","path":"/Users/beetle/Desktop/finogeeks/gitlab/finosprite/finclip-flutter-sdk/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"mop","dependencies":[]}],"date_created":"2021-04-30 09:33:21.567900","version":"2.0.3"} {"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"mop","path":"/Users/kangxuyao/StudioProjects/finclip-flutter-sdk/","dependencies":[]}],"android":[{"name":"mop","path":"/Users/kangxuyao/StudioProjects/finclip-flutter-sdk/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"mop","dependencies":[]}],"date_created":"2021-06-02 11:08:31.029967","version":"2.3.0-2.0.pre.105"}

View File

@ -7,7 +7,7 @@ packages:
name: async name: async
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "2.5.0" version: "2.6.0"
boolean_selector: boolean_selector:
dependency: transitive dependency: transitive
description: description:
@ -87,7 +87,7 @@ packages:
path: ".." path: ".."
relative: true relative: true
source: path source: path
version: "2.24.7" version: "2.27.1"
path: path:
dependency: transitive dependency: transitive
description: description:
@ -106,7 +106,7 @@ packages:
name: source_span name: source_span
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.8.0" version: "1.8.1"
stack_trace: stack_trace:
dependency: transitive dependency: transitive
description: description:
@ -141,7 +141,7 @@ packages:
name: test_api name: test_api
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "0.2.19" version: "0.3.0"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:
@ -157,5 +157,5 @@ packages:
source: hosted source: hosted
version: "2.1.0" version: "2.1.0"
sdks: sdks:
dart: ">=2.12.0-0.0 <3.0.0" dart: ">=2.12.0 <3.0.0"
flutter: ">=1.10.0" flutter: ">=1.10.0"

View File

@ -73,14 +73,16 @@ class Mop {
{String apiServer, {String apiServer,
String apiPrefix, String apiPrefix,
String cryptType, String cryptType,
bool disablePermission}) async { bool disablePermission,
String userId}) async {
final Map ret = await _channel.invokeMethod('initialize', { final Map ret = await _channel.invokeMethod('initialize', {
'appkey': appkey, 'appkey': appkey,
'secret': secret, 'secret': secret,
'apiServer': apiServer, 'apiServer': apiServer,
'apiPrefix': apiPrefix, 'apiPrefix': apiPrefix,
'cryptType': cryptType, 'cryptType': cryptType,
'disablePermission': disablePermission 'disablePermission': disablePermission,
'userId': userId
}); });
return ret; return ret;
} }

View File

@ -7,7 +7,7 @@ packages:
name: async name: async
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "2.5.0" version: "2.6.0"
boolean_selector: boolean_selector:
dependency: transitive dependency: transitive
description: description:
@ -92,7 +92,7 @@ packages:
name: source_span name: source_span
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.8.0" version: "1.8.1"
stack_trace: stack_trace:
dependency: transitive dependency: transitive
description: description:
@ -127,7 +127,7 @@ packages:
name: test_api name: test_api
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "0.2.19" version: "0.3.0"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:
@ -143,5 +143,5 @@ packages:
source: hosted source: hosted
version: "2.1.0" version: "2.1.0"
sdks: sdks:
dart: ">=2.12.0-0.0 <3.0.0" dart: ">=2.12.0 <3.0.0"
flutter: ">=1.10.0" flutter: ">=1.10.0"