Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-fluwx
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
clx-fluwx
Commits
1b2a76da
提交
1b2a76da
authored
3月 07, 2025
作者:
Jarvan Mo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update docs
上级
1a732a93
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
16 行增加
和
3 行删除
+16
-3
auth_type.dart
lib/src/foundation/auth_type.dart
+1
-0
open_type.dart
lib/src/foundation/open_type.dart
+1
-0
share_models.dart
lib/src/foundation/share_models.dart
+1
-0
wechat_response.dart
lib/src/response/wechat_response.dart
+13
-3
没有找到文件。
lib/src/foundation/auth_type.dart
浏览文件 @
1b2a76da
part of
'arguments.dart'
;
part of
'arguments.dart'
;
/// The base class for all AuthType
sealed
class
AuthType
with
_Argument
{}
sealed
class
AuthType
with
_Argument
{}
/// The WeChat-Login is under Auth-2.0
/// The WeChat-Login is under Auth-2.0
...
...
lib/src/foundation/open_type.dart
浏览文件 @
1b2a76da
...
@@ -31,6 +31,7 @@ class BusinessView extends OpenType {
...
@@ -31,6 +31,7 @@ class BusinessView extends OpenType {
{
"businessType"
:
businessType
,
"query"
:
query
};
{
"businessType"
:
businessType
,
"query"
:
query
};
}
}
/// Inovice
class
Invoice
extends
OpenType
{
class
Invoice
extends
OpenType
{
final
String
appId
;
final
String
appId
;
final
String
cardType
;
final
String
cardType
;
...
...
lib/src/foundation/share_models.dart
浏览文件 @
1b2a76da
...
@@ -30,6 +30,7 @@ const String _msgSignature = "msgSignature";
...
@@ -30,6 +30,7 @@ const String _msgSignature = "msgSignature";
const
String
_thumbData
=
"thumbData"
;
const
String
_thumbData
=
"thumbData"
;
const
String
_thumbDataHash
=
"thumbDataHash"
;
const
String
_thumbDataHash
=
"thumbDataHash"
;
/// Base class for all share models
sealed
class
WeChatShareModel
with
_Argument
{
sealed
class
WeChatShareModel
with
_Argument
{
final
String
?
title
;
final
String
?
title
;
final
String
?
description
;
final
String
?
description
;
...
...
lib/src/response/wechat_response.dart
浏览文件 @
1b2a76da
...
@@ -87,7 +87,7 @@ class WeChatOpenInvoiceResponse extends WeChatResponse {
...
@@ -87,7 +87,7 @@ class WeChatOpenInvoiceResponse extends WeChatResponse {
return
(
errCode:
errCode
,
errStr:
errStr
,
cardItemList:
cardItemList
);
return
(
errCode:
errCode
,
errStr:
errStr
,
cardItemList:
cardItemList
);
}
}
}
}
/// The response when sharing finished.
class
WeChatShareResponse
extends
WeChatResponse
{
class
WeChatShareResponse
extends
WeChatResponse
{
WeChatShareResponse
.
fromMap
(
Map
map
)
WeChatShareResponse
.
fromMap
(
Map
map
)
:
type
=
map
[
'type'
],
:
type
=
map
[
'type'
],
...
@@ -101,6 +101,7 @@ class WeChatShareResponse extends WeChatResponse {
...
@@ -101,6 +101,7 @@ class WeChatShareResponse extends WeChatResponse {
}
}
}
}
/// The response when auth finished.
class
WeChatAuthResponse
extends
WeChatResponse
{
class
WeChatAuthResponse
extends
WeChatResponse
{
WeChatAuthResponse
.
fromMap
(
Map
map
)
WeChatAuthResponse
.
fromMap
(
Map
map
)
:
type
=
map
[
'type'
],
:
type
=
map
[
'type'
],
...
@@ -130,6 +131,7 @@ class WeChatAuthResponse extends WeChatResponse {
...
@@ -130,6 +131,7 @@ class WeChatAuthResponse extends WeChatResponse {
}
}
}
}
/// The response when launching mini program finished.
class
WeChatLaunchMiniProgramResponse
extends
WeChatResponse
{
class
WeChatLaunchMiniProgramResponse
extends
WeChatResponse
{
WeChatLaunchMiniProgramResponse
.
fromMap
(
Map
map
)
WeChatLaunchMiniProgramResponse
.
fromMap
(
Map
map
)
:
type
=
map
[
'type'
],
:
type
=
map
[
'type'
],
...
@@ -145,6 +147,7 @@ class WeChatLaunchMiniProgramResponse extends WeChatResponse {
...
@@ -145,6 +147,7 @@ class WeChatLaunchMiniProgramResponse extends WeChatResponse {
}
}
}
}
/// The response when payment finished.
class
WeChatPaymentResponse
extends
WeChatResponse
{
class
WeChatPaymentResponse
extends
WeChatResponse
{
WeChatPaymentResponse
.
fromMap
(
Map
map
)
WeChatPaymentResponse
.
fromMap
(
Map
map
)
:
type
=
map
[
'type'
],
:
type
=
map
[
'type'
],
...
@@ -160,6 +163,7 @@ class WeChatPaymentResponse extends WeChatResponse {
...
@@ -160,6 +163,7 @@ class WeChatPaymentResponse extends WeChatResponse {
}
}
}
}
/// The response when customer service chat finished.
class
WeChatOpenCustomerServiceChatResponse
extends
WeChatResponse
{
class
WeChatOpenCustomerServiceChatResponse
extends
WeChatResponse
{
WeChatOpenCustomerServiceChatResponse
.
fromMap
(
Map
map
)
WeChatOpenCustomerServiceChatResponse
.
fromMap
(
Map
map
)
:
extMsg
=
map
[
'extMsg'
],
:
extMsg
=
map
[
'extMsg'
],
...
@@ -173,6 +177,8 @@ class WeChatOpenCustomerServiceChatResponse extends WeChatResponse {
...
@@ -173,6 +177,8 @@ class WeChatOpenCustomerServiceChatResponse extends WeChatResponse {
}
}
}
}
/// The response when open business view finished.
class
WeChatOpenBusinessViewResponse
extends
WeChatResponse
{
class
WeChatOpenBusinessViewResponse
extends
WeChatResponse
{
final
String
?
extMsg
;
final
String
?
extMsg
;
final
String
?
openid
;
final
String
?
openid
;
...
@@ -199,6 +205,7 @@ class WeChatOpenBusinessViewResponse extends WeChatResponse {
...
@@ -199,6 +205,7 @@ class WeChatOpenBusinessViewResponse extends WeChatResponse {
}
}
}
}
/// The response when subscribe message finished.
class
WeChatSubscribeMsgResponse
extends
WeChatResponse
{
class
WeChatSubscribeMsgResponse
extends
WeChatResponse
{
WeChatSubscribeMsgResponse
.
fromMap
(
Map
map
)
WeChatSubscribeMsgResponse
.
fromMap
(
Map
map
)
:
openid
=
map
[
'openid'
],
:
openid
=
map
[
'openid'
],
...
@@ -228,6 +235,7 @@ class WeChatSubscribeMsgResponse extends WeChatResponse {
...
@@ -228,6 +235,7 @@ class WeChatSubscribeMsgResponse extends WeChatResponse {
}
}
}
}
/// The response when open business webview finished.
class
WeChatOpenBusinessWebviewResponse
extends
WeChatResponse
{
class
WeChatOpenBusinessWebviewResponse
extends
WeChatResponse
{
WeChatOpenBusinessWebviewResponse
.
fromMap
(
Map
map
)
WeChatOpenBusinessWebviewResponse
.
fromMap
(
Map
map
)
:
type
=
map
[
'type'
],
:
type
=
map
[
'type'
],
...
@@ -250,7 +258,7 @@ class WeChatOpenBusinessWebviewResponse extends WeChatResponse {
...
@@ -250,7 +258,7 @@ class WeChatOpenBusinessWebviewResponse extends WeChatResponse {
);
);
}
}
}
}
/// The response when auth by QRCode finished.
class
WeChatAuthByQRCodeFinishedResponse
extends
WeChatResponse
{
class
WeChatAuthByQRCodeFinishedResponse
extends
WeChatResponse
{
WeChatAuthByQRCodeFinishedResponse
.
fromMap
(
Map
map
)
WeChatAuthByQRCodeFinishedResponse
.
fromMap
(
Map
map
)
:
authCode
=
map
[
'authCode'
],
:
authCode
=
map
[
'authCode'
],
...
@@ -296,7 +304,7 @@ class WeChatQRCodeScannedResponse extends WeChatResponse {
...
@@ -296,7 +304,7 @@ class WeChatQRCodeScannedResponse extends WeChatResponse {
}
}
}
}
// 获取微信打开App时携带的参数
//
/
获取微信打开App时携带的参数
class
WeChatShowMessageFromWXRequest
extends
WeChatResponse
{
class
WeChatShowMessageFromWXRequest
extends
WeChatResponse
{
final
String
?
country
;
final
String
?
country
;
final
String
?
lang
;
final
String
?
lang
;
...
@@ -327,6 +335,7 @@ class WeChatShowMessageFromWXRequest extends WeChatResponse {
...
@@ -327,6 +335,7 @@ class WeChatShowMessageFromWXRequest extends WeChatResponse {
}
}
}
}
/// 获取微信打开App时携带的参数
class
WeChatLaunchFromWXRequest
extends
WeChatResponse
{
class
WeChatLaunchFromWXRequest
extends
WeChatResponse
{
final
String
?
country
;
final
String
?
country
;
final
String
?
lang
;
final
String
?
lang
;
...
@@ -354,6 +363,7 @@ class WeChatLaunchFromWXRequest extends WeChatResponse {
...
@@ -354,6 +363,7 @@ class WeChatLaunchFromWXRequest extends WeChatResponse {
}
}
}
}
/// The error code returned by Wechat SDK.
enum
AuthByQRCodeErrorCode
{
enum
AuthByQRCodeErrorCode
{
ok
,
// WechatAuth_Err_OK(0)
ok
,
// WechatAuth_Err_OK(0)
normalErr
,
// WechatAuth_Err_NormalErr(-1)
normalErr
,
// WechatAuth_Err_NormalErr(-1)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论