提交 4eb523a2 authored 作者: JarvanMo's avatar JarvanMo

Merge branch 'master' of github.com:JarvanMo/fluwx

---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Flutter Version:**
Run `flutter doctor` in terminal or powershell , and copy the outputs.
**Testing Platform:**
Android or iOS?
**Additional context**
Add any other context about the problem here.
......@@ -32,6 +32,7 @@ android {
}
defaultConfig {
minSdkVersion 16
consumerProguardFiles 'consumer-proguard-rules.txt'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
......
# 微信
-keep class com.tencent.mm.opensdk.** {*;}
-keep class com.tencent.wxop.** {*;}
-keep class com.tencent.mm.sdk.** {*;}
## Kotlin
# ServiceLoader support
-keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {}
-keepnames class kotlinx.coroutines.CoroutineExceptionHandler {}
-keepnames class kotlinx.coroutines.android.AndroidExceptionPreHandler {}
-keepnames class kotlinx.coroutines.android.AndroidDispatcherFactory {}
# Most of volatile fields are updated with AFU and should not be mangled
-keepclassmembernames class kotlinx.** {
volatile <fields>;
}
......@@ -5,4 +5,13 @@ We'll get a `code` by sending auth:
fluwx.sendAuth(
scope: "snsapi_userinfo", state: "wechat_sdk_demo_test")
```
Getting `access_token` is not supported by `fluwx`.
Getting `access_token` is not supported in `fluwx`. For `access_token`, please visity the official documents.
## Receive SendAuth Result
```dart
fluwx.responseFromAuth.listen((data) {
//do something.
});
```
......@@ -5,3 +5,11 @@
fluwx.sendAuth(
scope: "snsapi_userinfo", state: "wechat_sdk_demo_test")
```
## 获取结果
```dart
fluwx.responseFromAuth.listen((data) {
//do something.
});
```
......@@ -4,17 +4,16 @@
```dart
import 'package:fluwx/fluwx.dart' as fluwx;
fluwx.pay(WeChatPayModel(
appId: 'wxd930ea5d5a258f4f',
fluwx.pay( appId: 'wxd930ea5d5a258f4f',
partnerId: '1900000109',
prepayId: '1101000000140415649af9fc314aa427',
packageValue: 'Sign=WXPay',
nonceStr: '1101000000140429eb40476f8896f4c9',
timeStamp: '1398746574',
timeStamp: 1398746574,
sign: '7FFECB600D7157C5AA49810D2D8F28BC2811827B',
signType: '选填',
extData: '选填'
));
signType: '$Optional}',
extData: '$Optional}'
);
```
### Return
The return value of `fluwx.share(model)` is a `Map`
......
......@@ -5,17 +5,16 @@
```dart
import 'package:fluwx/fluwx.dart' as fluwx;
fluwx.pay(WeChatPayModel(
appId: 'wxd930ea5d5a258f4f',
fluwx.pay( appId: 'wxd930ea5d5a258f4f',
partnerId: '1900000109',
prepayId: '1101000000140415649af9fc314aa427',
packageValue: 'Sign=WXPay',
nonceStr: '1101000000140429eb40476f8896f4c9',
timeStamp: '1398746574',
timeStamp: 1398746574,
sign: '7FFECB600D7157C5AA49810D2D8F28BC2811827B',
signType: '选填',
extData: '选填'
));
);
```
### 返回值处理
注:此返回值是此方法调用的直接返回值,并非支付之后的回调,回调请查看[相关文档](./RESPONSE.md)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论