请教开放平台与日报调试问题

kevin1020 3月前 146

调试开放平台功能过程中,涉及到有交互功能的日报提示报错,android和iOS客户端都报错,没有交互功能的百度网页就正常,这是为什么?我的xcode版本低(14.2),代码用的是9个月以前的代码编译的,是不是会影响?但是android端的是最新的代码,也报错,是不是我的开放平台配置和日报配置有问题?那两个服务都没有报错。

xcode的错误信息如下:

2024-01-24 17:01:02.754493+0800 野火IM[6722:240760] [I][mars::comm][alarm.cc, OnAlarm, 144][OnAlarm id:105553128605184, seq:29, elapsed:10003, after:10000, miss:3, android alarm:false, MQ:123145353994240runing
2024-01-24 17:01:12.139238+0800 野火IM[6722:240541] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2024-01-24 17:01:12.139547+0800 野火IM[6722:240541] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.

iOS客户端错误页面

iOS显示写日志按钮

iOS点击写日志,提示错误是没有登录。

android客户端错误页面

android客户端能显示写日志按钮

android客户端点击写日志,一样提示没有登录。

上传的附件:
最新回复 (3)
  • x86 3月前
    引用 2
    可以通过 chrome 来进行远程调试:

    chrome 浏览器,地址栏输入:chrome://inspect
    然后,inspect 日志列表页面,看下控制台的错误提示和网络页面`config`请求的参数等
  • x86 3月前
    引用 3
    如果严格跟着文档来的话,正常应当是没问题的
  • kevin1020 3月前
    引用 4
    谢谢!问题已经解决。在日报应用的ReportListView.vue页面里面修改一下就OK了,原来的代码链到线上的url了,改成本地的就正常了。

     methods: {
            writeReport() {
                // 开发调试时使用
                //wf.openUrl(location.href + 'newReport', {external: true})
                // 线上
                wf.openUrl('http://report.wildfirechat.cn/newReport.html', {external: true})
            },
            showReportDetail(report) {
                // 开发调试时使用
                //wf.openUrl(location.href + 'report' + '?day=' + report.day, {external: true})
                // 线上
                wf.openUrl(`https://report.wildfirechat.cn/report.html?userId=${report.userId}&day=${report.day}`, {external: true})
            },
返回