Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
- Subscribe Message.
- Just open WeChat app.
- Launch app From wechat link.
- Open Customer Service

## Preparation

Expand Down Expand Up @@ -125,6 +126,7 @@ It' better to register your API as early as possible.
- [Payment](./doc/PAYMENT.md)
- [Auth](./doc/AUTH.md)
- [Launch app from h5](./doc/LAUNCH_APP_FROM_H5.md)
- [Open Customer Service](/doc/Customer_Service.md)

For more capabilities, you can read the public functions of `fluwx`.

Expand Down
2 changes: 2 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
- 订阅消息.
- 打开微信.
- 从微信标签打开应用
- APP拉起客服微信

## 准备

Expand Down Expand Up @@ -122,6 +123,7 @@ fluwx.registerApi(appId: "wxd930ea5d5a228f5f",universalLink: "https://your.unive
- [支付](./doc/PAYMENT_CN.md)
- [登录](./doc/AUTH_CN.md)
- [从微信标签打开应用](./doc/LAUNCH_APP_FROM_H5_CN.md)
- [APP拉起客服微信](/doc/Customer_Service_CN.md)
对于更多功能,可以查看源码。

## QA
Expand Down
27 changes: 27 additions & 0 deletions doc/Customer_Service.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Open Customer Service


```
static Fluwx _fluwx = Fluwx();
static Future<void> openCustomerServiceChat() async {
bool isInstall = await _fluwx.isWeChatInstalled;
if (!isInstall) {
if (Platform.isIOS) {
jumpToAppStore();
} else {
EasyLoading.showToast("UnInstall");
}
return;
}
CustomerServiceChat chat = CustomerServiceChat(
corpId: "wwdxxxxxx",
url: "https://work.weixin.qq.com/kfid/kfcxxxxxx");
_fluwx.open(target: chat);
}
jumpToAppStore() async {
final uri = Uri.parse('https://apps.apple.com/app/id414478124');
if (await canLaunchUrl(uri)) {
await launchUrl(uri);
}
}
```
28 changes: 28 additions & 0 deletions doc/Customer_Service_CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

# 打开客服微信


```
static Fluwx _fluwx = Fluwx();
static Future<void> openCustomerServiceChat() async {
bool isInstall = await _fluwx.isWeChatInstalled;
if (!isInstall) {
if (Platform.isIOS) {
jumpToAppStore();
} else {
EasyLoading.showToast("UnInstall");
}
return;
}
CustomerServiceChat chat = CustomerServiceChat(
corpId: "wwdxxxxxx",
url: "https://work.weixin.qq.com/kfid/kfcxxxxxx");
_fluwx.open(target: chat);
}
jumpToAppStore() async {
final uri = Uri.parse('https://apps.apple.com/app/id414478124');
if (await canLaunchUrl(uri)) {
await launchUrl(uri);
}
}
```