Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-fluwx
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
clx-fluwx
Commits
4eb523a2
提交
4eb523a2
authored
9月 20, 2019
作者:
JarvanMo
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of github.com:JarvanMo/fluwx
上级
aa6642af
f2da12e0
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
77 行增加
和
13 行删除
+77
-13
bug_report.md
.github/ISSUE_TEMPLATE/bug_report.md
+30
-0
build.gradle
android/build.gradle
+1
-0
consumer-proguard-rules.txt
android/consumer-proguard-rules.txt
+19
-0
SEND_AUTH.md
doc/SEND_AUTH.md
+10
-1
SEND_AUTH_CN.md
doc/SEND_AUTH_CN.md
+8
-0
WXPay.md
doc/WXPay.md
+5
-6
WXPay_CN.md
doc/WXPay_CN.md
+4
-6
没有找到文件。
.github/ISSUE_TEMPLATE/bug_report.md
0 → 100644
浏览文件 @
4eb523a2
---
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.
android/build.gradle
浏览文件 @
4eb523a2
...
@@ -32,6 +32,7 @@ android {
...
@@ -32,6 +32,7 @@ android {
}
}
defaultConfig
{
defaultConfig
{
minSdkVersion
16
minSdkVersion
16
consumerProguardFiles
'consumer-proguard-rules.txt'
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
}
}
lintOptions
{
lintOptions
{
...
...
android/consumer-proguard-rules.txt
0 → 100644
浏览文件 @
4eb523a2
# 微信
-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>;
}
doc/SEND_AUTH.md
浏览文件 @
4eb523a2
...
@@ -5,4 +5,13 @@ We'll get a `code` by sending auth:
...
@@ -5,4 +5,13 @@ We'll get a `code` by sending auth:
fluwx
.
sendAuth
(
fluwx
.
sendAuth
(
scope:
"snsapi_userinfo"
,
state:
"wechat_sdk_demo_test"
)
;
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.
});
```
doc/SEND_AUTH_CN.md
浏览文件 @
4eb523a2
...
@@ -5,3 +5,11 @@
...
@@ -5,3 +5,11 @@
fluwx
.
sendAuth
(
fluwx
.
sendAuth
(
scope:
"snsapi_userinfo"
,
state:
"wechat_sdk_demo_test"
)
;
scope:
"snsapi_userinfo"
,
state:
"wechat_sdk_demo_test"
)
;
```
```
## 获取结果
```
dart
fluwx
.
responseFromAuth
.
listen
((
data
)
{
//do something.
});
```
doc/WXPay.md
浏览文件 @
4eb523a2
...
@@ -4,17 +4,16 @@
...
@@ -4,17 +4,16 @@
```
dart
```
dart
import
'package:fluwx/fluwx.dart'
as
fluwx
;
import
'package:fluwx/fluwx.dart'
as
fluwx
;
fluwx
.
pay
(
WeChatPayModel
(
fluwx
.
pay
(
appId:
'wxd930ea5d5a258f4f'
,
appId:
'wxd930ea5d5a258f4f'
,
partnerId:
'1900000109'
,
partnerId:
'1900000109'
,
prepayId:
'1101000000140415649af9fc314aa427'
,
prepayId:
'1101000000140415649af9fc314aa427'
,
packageValue:
'Sign=WXPay'
,
packageValue:
'Sign=WXPay'
,
nonceStr:
'1101000000140429eb40476f8896f4c9'
,
nonceStr:
'1101000000140429eb40476f8896f4c9'
,
timeStamp:
'1398746574'
,
timeStamp:
1398746574
,
sign:
'7FFECB600D7157C5AA49810D2D8F28BC2811827B'
,
sign:
'7FFECB600D7157C5AA49810D2D8F28BC2811827B'
,
signType:
'
选填
'
,
signType:
'
$Optional
}
'
,
extData:
'
选填
'
extData:
'
$Optional
}
'
)
)
;
);
```
```
### Return
### Return
The return value of
`fluwx.share(model)`
is a
`Map`
:
The return value of
`fluwx.share(model)`
is a
`Map`
:
...
...
doc/WXPay_CN.md
浏览文件 @
4eb523a2
...
@@ -5,17 +5,16 @@
...
@@ -5,17 +5,16 @@
```
dart
```
dart
import
'package:fluwx/fluwx.dart'
as
fluwx
;
import
'package:fluwx/fluwx.dart'
as
fluwx
;
fluwx
.
pay
(
WeChatPayModel
(
fluwx
.
pay
(
appId:
'wxd930ea5d5a258f4f'
,
appId:
'wxd930ea5d5a258f4f'
,
partnerId:
'1900000109'
,
partnerId:
'1900000109'
,
prepayId:
'1101000000140415649af9fc314aa427'
,
prepayId:
'1101000000140415649af9fc314aa427'
,
packageValue:
'Sign=WXPay'
,
packageValue:
'Sign=WXPay'
,
nonceStr:
'1101000000140429eb40476f8896f4c9'
,
nonceStr:
'1101000000140429eb40476f8896f4c9'
,
timeStamp:
'1398746574'
,
timeStamp:
1398746574
,
sign:
'7FFECB600D7157C5AA49810D2D8F28BC2811827B'
,
sign:
'7FFECB600D7157C5AA49810D2D8F28BC2811827B'
,
signType:
'选填'
,
signType:
'选填'
,
extData:
'选填'
extData:
'选填'
)
)
;
);
```
```
### 返回值处理
### 返回值处理
注:此返回值是此方法调用的直接返回值,并非支付之后的回调,回调请查看
[
相关文档
](
./RESPONSE.md
)
注:此返回值是此方法调用的直接返回值,并非支付之后的回调,回调请查看
[
相关文档
](
./RESPONSE.md
)
...
@@ -27,4 +26,4 @@ fluwx.pay(WeChatPayModel(
...
@@ -27,4 +26,4 @@ fluwx.pay(WeChatPayModel(
result:
true
//或者false,取决于WXApi.sendRequest()的结果
result:
true
//或者false,取决于WXApi.sendRequest()的结果
}
}
```
```
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论