更新finclip域名

master
kangxuyao 2021-01-12 15:24:37 +08:00
parent 1c317c59dc
commit 6df5b04229
5 changed files with 11 additions and 11 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

@ -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