Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-fluwx
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
clx-fluwx
Commits
44871968
提交
44871968
authored
4月 12, 2021
作者:
Charley
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
iOS主动拉取信息
上级
7b49a11b
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
16 行增加
和
1 行删除
+16
-1
FluwxPlugin.m
ios/Classes/FluwxPlugin.m
+16
-1
没有找到文件。
ios/Classes/FluwxPlugin.m
浏览文件 @
44871968
...
@@ -4,6 +4,10 @@
...
@@ -4,6 +4,10 @@
#import "FluwxAuthHandler.h"
#import "FluwxAuthHandler.h"
#import "FluwxShareHandler.h"
#import "FluwxShareHandler.h"
@interface
FluwxPlugin
()
<
WXApiManagerDelegate
>
@property
(
strong
,
nonatomic
)
NSString
*
extMsg
;
@end
@implementation
FluwxPlugin
@implementation
FluwxPlugin
FluwxAuthHandler
*
_fluwxAuthHandler
;
FluwxAuthHandler
*
_fluwxAuthHandler
;
FluwxShareHandler
*
_fluwxShareHandler
;
FluwxShareHandler
*
_fluwxShareHandler
;
...
@@ -23,6 +27,7 @@ FlutterMethodChannel *channel = nil;
...
@@ -23,6 +27,7 @@ FlutterMethodChannel *channel = nil;
FluwxPlugin
*
instance
=
[[
FluwxPlugin
alloc
]
initWithRegistrar
:
registrar
methodChannel
:
channel
];
FluwxPlugin
*
instance
=
[[
FluwxPlugin
alloc
]
initWithRegistrar
:
registrar
methodChannel
:
channel
];
[
registrar
addMethodCallDelegate
:
instance
channel
:
channel
];
[
registrar
addMethodCallDelegate
:
instance
channel
:
channel
];
[[
FluwxResponseHandler
defaultManager
]
setMethodChannel
:
channel
];
[[
FluwxResponseHandler
defaultManager
]
setMethodChannel
:
channel
];
[
registrar
addApplicationDelegate
:
instance
];
[
registrar
addApplicationDelegate
:
instance
];
#if TARGET_OS_IPHONE
#if TARGET_OS_IPHONE
}
}
...
@@ -35,8 +40,8 @@ FlutterMethodChannel *channel = nil;
...
@@ -35,8 +40,8 @@ FlutterMethodChannel *channel = nil;
if
(
self
)
{
if
(
self
)
{
_fluwxAuthHandler
=
[[
FluwxAuthHandler
alloc
]
initWithRegistrar
:
registrar
methodChannel
:
flutterMethodChannel
];
_fluwxAuthHandler
=
[[
FluwxAuthHandler
alloc
]
initWithRegistrar
:
registrar
methodChannel
:
flutterMethodChannel
];
_fluwxShareHandler
=
[[
FluwxShareHandler
alloc
]
initWithRegistrar
:
registrar
];
_fluwxShareHandler
=
[[
FluwxShareHandler
alloc
]
initWithRegistrar
:
registrar
];
[
FluwxResponseHandler
defaultManager
].
delegate
=
self
;
}
}
return
self
;
return
self
;
}
}
...
@@ -65,6 +70,8 @@ FlutterMethodChannel *channel = nil;
...
@@ -65,6 +70,8 @@ FlutterMethodChannel *channel = nil;
[
self
handleAutoDeductWithCall
:
call
result
:
result
];
[
self
handleAutoDeductWithCall
:
call
result
:
result
];
}
else
if
([
@"authByPhoneLogin"
isEqualToString
:
call
.
method
]){
}
else
if
([
@"authByPhoneLogin"
isEqualToString
:
call
.
method
]){
[
_fluwxAuthHandler
handleAuthByPhoneLogin
:
call
result
:
result
];
[
_fluwxAuthHandler
handleAuthByPhoneLogin
:
call
result
:
result
];
}
else
if
([
@"getExtMsg"
isEqualToString
:
call
.
method
]){
[
self
handelGetExtMsgWithCall
:
call
result
:
result
];
}
else
if
([
call
.
method
hasPrefix
:
@"share"
])
{
}
else
if
([
call
.
method
hasPrefix
:
@"share"
])
{
[
_fluwxShareHandler
handleShare
:
call
result
:
result
];
[
_fluwxShareHandler
handleShare
:
call
result
:
result
];
}
else
{
}
else
{
...
@@ -189,6 +196,10 @@ FlutterMethodChannel *channel = nil;
...
@@ -189,6 +196,10 @@ FlutterMethodChannel *channel = nil;
}];
}];
}
}
-
(
void
)
handelGetExtMsgWithCall
:(
FlutterMethodCall
*
)
call
result
:(
FlutterResult
)
result
{
result
(
self
.
extMsg
);
}
-
(
BOOL
)
application
:(
UIApplication
*
)
application
openURL
:(
NSURL
*
)
url
sourceApplication
:(
NSString
*
)
sourceApplication
annotation
:(
id
)
annotation
{
-
(
BOOL
)
application
:(
UIApplication
*
)
application
openURL
:(
NSURL
*
)
url
sourceApplication
:(
NSString
*
)
sourceApplication
annotation
:(
id
)
annotation
{
return
[
WXApi
handleOpenURL
:
url
delegate
:[
FluwxResponseHandler
defaultManager
]];
return
[
WXApi
handleOpenURL
:
url
delegate
:[
FluwxResponseHandler
defaultManager
]];
...
@@ -216,4 +227,8 @@ FlutterMethodChannel *channel = nil;
...
@@ -216,4 +227,8 @@ FlutterMethodChannel *channel = nil;
}
}
}
}
-
(
void
)
managerDidRecvLaunchFromWXReq
:
(
LaunchFromWXReq
*
)
request
{
self
.
extMsg
=
request
.
message
.
messageExt
;
}
@end
@end
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论