Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-fluwx
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
clx-fluwx
Commits
6d17d81a
提交
6d17d81a
authored
10月 22, 2018
作者:
JarvanMo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix bug
上级
bdf58bb4
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
20 行增加
和
4 行删除
+20
-4
FluwxResponseHandler.kt
...n/kotlin/com/jarvan/fluwx/handler/FluwxResponseHandler.kt
+5
-0
FluwxWXEntryActivity.kt
...ain/kotlin/com/jarvan/fluwx/wxapi/FluwxWXEntryActivity.kt
+14
-3
FluwxResponseHandler.m
ios/Classes/wechat/FluwxResponseHandler.m
+1
-1
没有找到文件。
android/src/main/kotlin/com/jarvan/fluwx/handler/FluwxResponseHandler.kt
浏览文件 @
6d17d81a
...
...
@@ -15,6 +15,7 @@
*/
package
com.jarvan.fluwx.handler
import
android.util.Log
import
com.jarvan.fluwx.constant.WeChatPluginMethods
import
com.jarvan.fluwx.constant.WechatPluginKeys
import
com.tencent.mm.opensdk.modelbase.BaseResp
...
...
@@ -39,6 +40,8 @@ object FluwxResponseHandler {
fun
handleResponse
(
response
:
BaseResp
)
{
Log
.
e
(
"tag"
,
"heeeeee"
)
when
(
response
)
{
is
SendAuth
.
Resp
->
handleAuthResponse
(
response
)
is
SendMessageToWX
.
Resp
->
handleSendMessageResp
(
response
)
...
...
@@ -57,6 +60,8 @@ object FluwxResponseHandler {
WechatPluginKeys
.
PLATFORM
to
WechatPluginKeys
.
ANDROID
)
response
.
extMsg
?.
let
{
// "extMsg" to response.extMsg,
result
[
"extMsg"
]
=
response
.
extMsg
...
...
android/src/main/kotlin/com/jarvan/fluwx/wxapi/FluwxWXEntryActivity.kt
浏览文件 @
6d17d81a
...
...
@@ -24,6 +24,7 @@ import com.jarvan.fluwx.handler.WXAPiHandler
import
com.tencent.mm.opensdk.modelbase.BaseReq
import
com.tencent.mm.opensdk.modelbase.BaseResp
import
com.tencent.mm.opensdk.openapi.IWXAPIEventHandler
import
java.lang.Exception
open
class
FluwxWXEntryActivity
:
Activity
(),
IWXAPIEventHandler
{
...
...
@@ -35,15 +36,26 @@ open class FluwxWXEntryActivity : Activity(), IWXAPIEventHandler {
super
.
onCreate
(
savedInstanceState
)
try
{
WXAPiHandler
.
wxApi
?.
handleIntent
(
intent
,
this
)
}
catch
(
e
:
Exception
){
e
.
printStackTrace
()
finish
()
}
WXAPiHandler
.
wxApi
?.
handleIntent
(
intent
,
this
)
}
override
fun
onNewIntent
(
intent
:
Intent
)
{
super
.
onNewIntent
(
intent
)
setIntent
(
intent
)
WXAPiHandler
.
wxApi
?.
handleIntent
(
intent
,
this
)
try
{
WXAPiHandler
.
wxApi
?.
handleIntent
(
intent
,
this
)
}
catch
(
e
:
Exception
){
e
.
printStackTrace
()
finish
()
}
}
...
...
@@ -53,7 +65,6 @@ open class FluwxWXEntryActivity : Activity(), IWXAPIEventHandler {
// 第三方应用发送到微信的请求处理后的响应结果,会回调到该方法
override
fun
onResp
(
resp
:
BaseResp
)
{
FluwxResponseHandler
.
handleResponse
(
resp
)
finish
()
}
...
...
ios/Classes/wechat/FluwxResponseHandler.m
浏览文件 @
6d17d81a
...
...
@@ -134,7 +134,7 @@ FlutterMethodChannel *fluwxMethodChannel = nil;
if
(
miniProgramResp
.
extMsg
!=
nil
){
result
[
@"extMsg"
]
=
miniProgramResp
.
extMsg
;
}
// @"extMsg":miniProgramResp.extMsg == nil?@"":miniProgramResp.extMsg
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论