From 6df5b042294f430734372b75549a08433231026c Mon Sep 17 00:00:00 2001 From: kangxuyao Date: Tue, 12 Jan 2021 15:24:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0finclip=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++----- .../java/com/finogeeks/mop/api/mop/BaseModule.java | 2 +- example/lib/main.dart | 4 ++-- ios/Classes/Api/MOP_initialize.m | 2 +- lib/mop.dart | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index af815d2..33fb9e9 100644 --- a/README.md +++ b/README.md @@ -38,13 +38,13 @@ class _MyAppState extends State { //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 { /// /// 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 { ``` 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. 打开小程序 diff --git a/android/src/main/java/com/finogeeks/mop/api/mop/BaseModule.java b/android/src/main/java/com/finogeeks/mop/api/mop/BaseModule.java index e7227b3..a6ad10b 100644 --- a/android/src/main/java/com/finogeeks/mop/api/mop/BaseModule.java +++ b/android/src/main/java/com/finogeeks/mop/api/mop/BaseModule.java @@ -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()) { diff --git a/example/lib/main.dart b/example/lib/main.dart index 1898494..b488f98 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -22,12 +22,12 @@ class _MyAppState extends State { 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; diff --git a/ios/Classes/Api/MOP_initialize.m b/ios/Classes/Api/MOP_initialize.m index 0bdbf59..1b6d1f6 100644 --- a/ios/Classes/Api/MOP_initialize.m +++ b/ios/Classes/Api/MOP_initialize.m @@ -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"; diff --git a/lib/mop.dart b/lib/mop.dart index 83d675b..b3e8c91 100644 --- a/lib/mop.dart +++ b/lib/mop.dart @@ -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