- camera组件的takePhoto拍出来的照片与预览不一致,iPad5-iPadOS16.7.10
camera组件的takePhoto拍出来的照片,相比起实时预览的照片,缩放比例放大了,并且拍到了预览界面的上方屏幕之外的部分,也就是说发生了位移。 已测试机型: iPad5 - iPadOS16.7.10 - 8.0.54 - 3.7.2: 出现问题iPad mini4 - iOS15.8.3 - 8.0.54 - 3.7.2:正常,没有出现问题iPhone7 - iOS13.6.1 - 8.0.50 - 3.5.8:正常,没有出现问题Android系统暂未发现问题暂时已发现的唯一出问题的机型是iPad5,系统是iPadOS16.7.10,微信版本8.0.54,基础库版本3.7.2 录屏视频可查看【腾讯文档】https://docs.qq.com/aio/DQUFtV3dLUnNJTE5I
2024-12-25 - 微信扫码,公众号被动回复了消息连续两次,第一次是服务出现故障的提示,第二次是正确的回复,怎么回事?
公众号开发: 步骤: 服务器创建了临时二维码用户微信扫码,进入公众号聊天界面(已关注)服务器被动推送扫码事件消息,告知用户登陆成功问题: 服务器只接收到了一条事件消息,我在服务器储存了Log日志记录,然后用户却收到了两条消息,第一条是提示“该公众号暂时无法提供服务,请稍后再试”,第二条是正确的服务器回复消息“登录成功”,如下图所示。 [图片] 第一条提示的消息不知道怎么来的??而且在公众号后台运维中心-日志查询,是查不到任何记录的。 背景: 最开始开发的是完全正常的,不会返回两条消息。但是最近我们项目迁移了服务器,迁移过后,就出现了这样的问题。 后台是PHP,传输时加密安全模式。 部分代码如下: public function responseMsg() { $xml_str = isset($GLOBALS['HTTP_RAW_POST_DATA']) ? $GLOBALS['HTTP_RAW_POST_DATA'] : file_get_contents("php://input"); // \Log::info($xml_str); if (empty($xml_str) || empty($_REQUEST)) { $this->noRes(); die(''); } if (!empty($xml_str)) { $res = new \stdClass; $errCode = self::$wxBizMsgCrypt->decryptMsg($_REQUEST['msg_signature'], $_REQUEST['timestamp'], $_REQUEST['nonce'], $xml_str, $res); \Log::info('res:' . json_encode($res, JSON_FORCE_OBJECT) . $errCode); if ($errCode == 0) { switch ($res->MsgType) { case 'event': //判断具体的时间类型(关注、取消、点击) $event = $res->Event; if ($event == 'SCAN') { if ($res->EventKey == 'admin_login') { // 后台系统绑定登陆 查询处理一些事情后,执行$this->sendText() $this->backSystemLogin($res); } elseif ($res->EventKey == 'admin_bind') { $this->backSystemBind($res); } else { $this->noRes(); } } else { // ...... } break; case 'text': //文本消息 $this->noRes(); break; default: # code... $this->noRes(); break; } } else { $this->noRes(); die(''); } } } private function sendText($text, $to, $from) { $format = " %s "; $xmlText = sprintf($format, $to, $from, time(), $text); $encryptMsg = ''; $errorCode = self::$wxBizMsgCrypt->encryptMsg($xmlText, $_REQUEST['timestamp'], $_REQUEST['nonce'], $encryptMsg); if (!empty($encryptMsg)) { // \Log::info('encrypt:' . $encryptMsg); echo $encryptMsg; } else { // \Log::info('errCOde:' . $errorCode); $this->noRes(); die(''); } } private function noRes() { $encryptMsg = ''; $errorCode = self::$wxBizMsgCrypt->encryptMsg('success', $_REQUEST['timestamp'], $_REQUEST['nonce'], $encryptMsg); if (!empty($encryptMsg)) { echo $encryptMsg; } else { die(''); } }
2020-03-16