Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-fluwx
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
clx-fluwx
Commits
8e878a79
提交
8e878a79
authored
4月 24, 2023
作者:
JarvanMo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
optimize API
上级
a2d88e8b
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
17 行增加
和
10 行删除
+17
-10
CHANGELOG.md
CHANGELOG.md
+3
-0
main.dart
example/lib/main.dart
+1
-1
launch_mini_program_page.dart
example/lib/pages/launch_mini_program_page.dart
+1
-1
pay_page.dart
example/lib/pages/pay_page.dart
+2
-1
send_auth_page.dart
example/lib/pages/send_auth_page.dart
+3
-2
sign_auto_deduct_page.dart
example/lib/pages/sign_auto_deduct_page.dart
+3
-2
subscribe_message_page.dart
example/lib/pages/subscribe_message_page.dart
+3
-2
pubspec.yaml
pubspec.yaml
+1
-1
没有找到文件。
CHANGELOG.md
浏览文件 @
8e878a79
# 4.0.0-pre.2
*
`Fluwx`
接口优化。合并了一些函数以优化使用体验。
# 4.0.0-pre.2
*
No_pay现已合并入Fluwx
*
将一些设置移到pubspec.yaml,具体可以参看
`example/pubspec.yaml`
...
...
example/lib/main.dart
浏览文件 @
8e878a79
...
...
@@ -205,7 +205,7 @@ class ShareSelectorPage extends StatelessWidget {
padding:
const
EdgeInsets
.
all
(
8.0
),
child:
OutlinedButton
(
onPressed:
()
{
fluwx
.
open
(
WeChatApp
());
fluwx
.
open
(
target:
WeChatApp
());
},
child:
const
Text
(
'Open WeChat App'
),
),
...
...
example/lib/pages/launch_mini_program_page.dart
浏览文件 @
8e878a79
...
...
@@ -46,7 +46,7 @@ class _LaunchMiniProgramPageState extends State<LaunchMiniProgramPage> {
children:
<
Widget
>[
OutlinedButton
(
onPressed:
()
{
fluwx
.
launchMiniProgram
(
username:
'gh_d43f693ca31f'
);
fluwx
.
open
(
target:
MiniProgram
(
username:
'gh_d43f693ca31f'
)
);
},
child:
const
Text
(
'Launch MiniProgrom'
),
),
...
...
example/lib/pages/pay_page.dart
浏览文件 @
8e878a79
...
...
@@ -56,6 +56,7 @@ class _PayPageState extends State<PayPage> {
debugPrint
(
result
[
'timestamp'
]);
fluwx
.
pay
(
which:
Payment
(
appId:
result
[
'appid'
].
toString
(),
partnerId:
result
[
'partnerid'
].
toString
(),
prepayId:
result
[
'prepayid'
].
toString
(),
...
...
@@ -63,7 +64,7 @@ class _PayPageState extends State<PayPage> {
nonceStr:
result
[
'noncestr'
].
toString
(),
timestamp:
result
[
'timestamp'
],
sign:
result
[
'sign'
].
toString
(),
)
)
)
.
then
((
data
)
{
print
(
'---》
$data
'
);
});
...
...
example/lib/pages/send_auth_page.dart
浏览文件 @
8e878a79
...
...
@@ -39,10 +39,11 @@ class _SendAuthPageState extends State<SendAuthPage> {
OutlinedButton
(
onPressed:
()
{
fluwx
.
sendAuth
(
.
authBy
(
which:
NormalAuth
(
scope:
'snsapi_userinfo'
,
state:
'wechat_sdk_demo_test'
,
)
)
)
.
then
((
data
)
{});
},
child:
const
Text
(
'send auth'
),
...
...
example/lib/pages/sign_auto_deduct_page.dart
浏览文件 @
8e878a79
...
...
@@ -123,7 +123,8 @@ class _SignAutoDeductPageState extends State<SignAutoDeductPage> {
}
void
_signAutoDeduct
()
{
fluwx
.
autoDeDuct
(
fluwx
.
autoDeduct
(
data:
AutoDeduct
.
detail
(
appId:
appId
.
text
,
mchId:
mchId
.
text
,
planId:
planId
.
text
,
...
...
@@ -135,6 +136,6 @@ class _SignAutoDeductPageState extends State<SignAutoDeductPage> {
sign:
sign
.
text
,
timestamp:
timestamp
.
text
,
returnApp:
'3'
,
);
)
)
;
}
}
example/lib/pages/subscribe_message_page.dart
浏览文件 @
8e878a79
...
...
@@ -81,11 +81,12 @@ class _SubscribeMessagePageState extends State<SubscribeMessagePage> {
}
void
_requestSubMsg
()
{
fluwx
.
subscribeMsg
(
fluwx
.
open
(
target:
SubscribeMessage
(
appId:
appId
.
text
,
scene:
int
.
tryParse
(
scene
.
text
)
??
1
,
templateId:
templateId
.
text
,
reserved:
reserved
.
text
,
);
)
)
;
}
}
pubspec.yaml
浏览文件 @
8e878a79
name
:
fluwx
description
:
The capability of implementing WeChat SDKs in Flutter. With Fluwx, developers can use WeChatSDK easily, such as sharing, payment, lanuch mini program and etc.
version
:
4.0.0-pre.
2
version
:
4.0.0-pre.
3
homepage
:
https://github.com/OpenFlutter/fluwx
environment
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论