更新finclip域名
parent
1c317c59dc
commit
6df5b04229
10
README.md
10
README.md
|
@ -38,13 +38,13 @@ class _MyAppState extends State<MyApp> {
|
||||||
//com.finogeeks.mopExample
|
//com.finogeeks.mopExample
|
||||||
final res = await Mop.instance.initialize(
|
final res = await Mop.instance.initialize(
|
||||||
'22LyZEib0gLTQdU3MUauARlLry7JL/2fRpscC9kpGZQA', '1c11d7252c53e0b6',
|
'22LyZEib0gLTQdU3MUauARlLry7JL/2fRpscC9kpGZQA', '1c11d7252c53e0b6',
|
||||||
apiServer: 'https://mp.finogeeks.com', apiPrefix: '/api/v1/mop');
|
apiServer: 'https://api.finclip.com', apiPrefix: '/api/v1/mop');
|
||||||
print(res);
|
print(res);
|
||||||
} else if (Platform.isAndroid) {
|
} else if (Platform.isAndroid) {
|
||||||
//com.finogeeks.mopexample
|
//com.finogeeks.mopexample
|
||||||
final res = await Mop.instance.initialize(
|
final res = await Mop.instance.initialize(
|
||||||
'22LyZEib0gLTQdU3MUauARjmmp6QmYgjGb3uHueys1oA', '98c49f97a031b555',
|
'22LyZEib0gLTQdU3MUauARjmmp6QmYgjGb3uHueys1oA', '98c49f97a031b555',
|
||||||
apiServer: 'https://mp.finogeeks.com', apiPrefix: '/api/v1/mop');
|
apiServer: 'https://api.finclip.com', apiPrefix: '/api/v1/mop');
|
||||||
print(res);
|
print(res);
|
||||||
}
|
}
|
||||||
if (!mounted) return;
|
if (!mounted) return;
|
||||||
|
@ -127,8 +127,8 @@ class _MyAppState extends State<MyApp> {
|
||||||
///
|
///
|
||||||
/// initialize mop miniprogram engine.
|
/// initialize mop miniprogram engine.
|
||||||
/// 初始化小程序
|
/// 初始化小程序
|
||||||
/// [appkey] 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 mp.finogeeks.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
|
/// [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
|
/// [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(
|
final res = await Mop.instance.initialize(
|
||||||
'22LyZEib0gLTQdU3MUauARlLry7JL/2fRpscC9kpGZQA', '1c11d7252c53e0b6',
|
'22LyZEib0gLTQdU3MUauARlLry7JL/2fRpscC9kpGZQA', '1c11d7252c53e0b6',
|
||||||
apiServer: 'https://mp.finogeeks.com', apiPrefix: '/api/v1/mop');
|
apiServer: 'https://api.finclip.com', apiPrefix: '/api/v1/mop');
|
||||||
```
|
```
|
||||||
|
|
||||||
2. 打开小程序
|
2. 打开小程序
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class BaseModule extends BaseApi {
|
||||||
}
|
}
|
||||||
String appkey = String.valueOf(param.get("appkey"));
|
String appkey = String.valueOf(param.get("appkey"));
|
||||||
String secret = String.valueOf(param.get("secret"));
|
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 apiPrefix = "/api/v1/mop/";
|
||||||
String cryptType = (String) param.get("cryptType");
|
String cryptType = (String) param.get("cryptType");
|
||||||
if (cryptType == null || cryptType.isEmpty()) {
|
if (cryptType == null || cryptType.isEmpty()) {
|
||||||
|
|
|
@ -22,12 +22,12 @@ class _MyAppState extends State<MyApp> {
|
||||||
if (Platform.isIOS) {
|
if (Platform.isIOS) {
|
||||||
final res = await Mop.instance.initialize(
|
final res = await Mop.instance.initialize(
|
||||||
'22LyZEib0gLTQdU3MUauAZ0pZVbKTWGmNN6Lx8hXhIkA', '74bde5fad53a817c',
|
'22LyZEib0gLTQdU3MUauAZ0pZVbKTWGmNN6Lx8hXhIkA', '74bde5fad53a817c',
|
||||||
apiServer: 'https://mp.finogeeks.com', apiPrefix: '/api/v1/mop');
|
apiServer: 'https://api.finclip.com', apiPrefix: '/api/v1/mop');
|
||||||
print(res);
|
print(res);
|
||||||
} else if (Platform.isAndroid) {
|
} else if (Platform.isAndroid) {
|
||||||
final res = await Mop.instance.initialize(
|
final res = await Mop.instance.initialize(
|
||||||
'22LyZEib0gLTQdU3MUauAZ0pZVbKTWGmNN6Lx8hXhIkA', '74bde5fad53a817c',
|
'22LyZEib0gLTQdU3MUauAZ0pZVbKTWGmNN6Lx8hXhIkA', '74bde5fad53a817c',
|
||||||
apiServer: 'https://mp.finogeeks.com', apiPrefix: '/api/v1/mop');
|
apiServer: 'https://api.finclip.com', apiPrefix: '/api/v1/mop');
|
||||||
print(res);
|
print(res);
|
||||||
}
|
}
|
||||||
if (!mounted) return;
|
if (!mounted) return;
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!self.apiServer || [self.apiServer isEqualToString:@""]) {
|
if (!self.apiServer || [self.apiServer isEqualToString:@""]) {
|
||||||
self.apiServer = @"https://mp.finogeeks.com";
|
self.apiServer = @"https://api.finclip.com";
|
||||||
}
|
}
|
||||||
if (!self.apiPrefix|| [self.apiPrefix isEqualToString:@""]) {
|
if (!self.apiPrefix|| [self.apiPrefix isEqualToString:@""]) {
|
||||||
self.apiPrefix = @"/api/v1/mop";
|
self.apiPrefix = @"/api/v1/mop";
|
||||||
|
|
|
@ -62,8 +62,8 @@ class Mop {
|
||||||
///
|
///
|
||||||
/// initialize mop miniprogram engine.
|
/// initialize mop miniprogram engine.
|
||||||
/// 初始化小程序
|
/// 初始化小程序
|
||||||
/// [appkey] 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 mp.finogeeks.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
|
/// [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
|
/// [apiPrefix] is optional. the mop server prefix. default is /api/v1/mop
|
||||||
/// [cryptType] is optional. cryptType, should be MD5/SM
|
/// [cryptType] is optional. cryptType, should be MD5/SM
|
||||||
|
|
Loading…
Reference in New Issue