Merge branch 'master' of ssh://git.finogeeks.club:2222/mop-mobile/mop-flutter-sdk

master
jizelin 2021-01-13 15:01:22 +08:00
commit 27c0f10995
6 changed files with 13 additions and 13 deletions

View File

@ -38,13 +38,13 @@ class _MyAppState extends State<MyApp> {
//com.finogeeks.mopExample
final res = await Mop.instance.initialize(
'22LyZEib0gLTQdU3MUauARlLry7JL/2fRpscC9kpGZQA', '1c11d7252c53e0b6',
apiServer: 'https://mp.finogeeks.com', apiPrefix: '/api/v1/mop');
apiServer: 'https://api.finclip.com', apiPrefix: '/api/v1/mop');
print(res);
} else if (Platform.isAndroid) {
//com.finogeeks.mopexample
final res = await Mop.instance.initialize(
'22LyZEib0gLTQdU3MUauARjmmp6QmYgjGb3uHueys1oA', '98c49f97a031b555',
apiServer: 'https://mp.finogeeks.com', apiPrefix: '/api/v1/mop');
apiServer: 'https://api.finclip.com', apiPrefix: '/api/v1/mop');
print(res);
}
if (!mounted) return;
@ -127,8 +127,8 @@ class _MyAppState extends State<MyApp> {
///
/// initialize mop miniprogram engine.
///
/// [appkey] is required. it can be getted from mp.finogeeks.com
/// [secret] is required. it can be getted from mp.finogeeks.com
/// [appkey] is required. it can be getted from api.finclip.com
/// [secret] is required. it can be getted from api.finclip.com
/// [apiServer] is optional. the mop server address. default is https://mp.finogeek.com
/// [apiPrefix] is optional. the mop server prefix. default is /api/v1/mop
///
@ -142,7 +142,7 @@ class _MyAppState extends State<MyApp> {
```
final res = await Mop.instance.initialize(
'22LyZEib0gLTQdU3MUauARlLry7JL/2fRpscC9kpGZQA', '1c11d7252c53e0b6',
apiServer: 'https://mp.finogeeks.com', apiPrefix: '/api/v1/mop');
apiServer: 'https://api.finclip.com', apiPrefix: '/api/v1/mop');
```
2.

View File

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

View File

@ -40,7 +40,7 @@ public class BaseModule extends BaseApi {
}
String appkey = String.valueOf(param.get("appkey"));
String secret = String.valueOf(param.get("secret"));
String apiServer = "https://mp.finogeeks.com";
String apiServer = "https://api.finclip.com";
String apiPrefix = "/api/v1/mop/";
String cryptType = (String) param.get("cryptType");
if (cryptType == null || cryptType.isEmpty()) {

View File

@ -22,12 +22,12 @@ class _MyAppState extends State<MyApp> {
if (Platform.isIOS) {
final res = await Mop.instance.initialize(
'22LyZEib0gLTQdU3MUauAZ0pZVbKTWGmNN6Lx8hXhIkA', '74bde5fad53a817c',
apiServer: 'https://mp.finogeeks.com', apiPrefix: '/api/v1/mop');
apiServer: 'https://api.finclip.com', apiPrefix: '/api/v1/mop');
print(res);
} else if (Platform.isAndroid) {
final res = await Mop.instance.initialize(
'22LyZEib0gLTQdU3MUauAZ0pZVbKTWGmNN6Lx8hXhIkA', '74bde5fad53a817c',
apiServer: 'https://mp.finogeeks.com', apiPrefix: '/api/v1/mop');
apiServer: 'https://api.finclip.com', apiPrefix: '/api/v1/mop');
print(res);
}
if (!mounted) return;

View File

@ -18,7 +18,7 @@
return;
}
if (!self.apiServer || [self.apiServer isEqualToString:@""]) {
self.apiServer = @"https://mp.finogeeks.com";
self.apiServer = @"https://api.finclip.com";
}
if (!self.apiPrefix|| [self.apiPrefix isEqualToString:@""]) {
self.apiPrefix = @"/api/v1/mop";

View File

@ -62,8 +62,8 @@ class Mop {
///
/// initialize mop miniprogram engine.
///
/// [appkey] is required. it can be getted from mp.finogeeks.com
/// [secret] is required. it can be getted from mp.finogeeks.com
/// [appkey] is required. it can be getted from api.finclip.com
/// [secret] is required. it can be getted from api.finclip.com
/// [apiServer] is optional. the mop server address. default is https://mp.finogeek.com
/// [apiPrefix] is optional. the mop server prefix. default is /api/v1/mop
/// [cryptType] is optional. cryptType, should be MD5/SM