https://developers.weixin.qq.com/community/develop/doc/0002aad7e9091096642b55d6e5b800?highLine=%25E6%258E%2588%25E6%259D%2583%25E5%2585%25A5%25E5%258F%25A3%25E9%25A1%25B5%25E6%2589%2580%25E5%259C%25A8%25E5%259F%259F%25E5%2590%258D%25EF%25BC%259A%25E7%25A9%25BA 之前都可以正常使用 不知道为啥跳转突然需要增加referrerpolicy='origin'这个属性 加完就可以正常使用了
三方平台构建授权链接后 跳转页面报错授权入口页所在域名为空,之前都正常使用,是改动接口了吗?之前的业务都挺正常的,两天前公司所有客户的三方平台都出现这种问题了[图片][图片][图片]
04-02https://developers.weixin.qq.com/community/develop/doc/0002aad7e9091096642b55d6e5b800?highLine=%25E6%258E%2588%25E6%259D%2583%25E5%2585%25A5%25E5%258F%25A3%25E9%25A1%25B5%25E6%2589%2580%25E5%259C%25A8%25E5%259F%259F%25E5%2590%258D%25EF%25BC%259A%25E7%25A9%25BA 之前都可以正常使用 不知道为啥跳转突然需要增加referrerpolicy='origin'这个属性 加完就可以正常使用了
按照文档所示内容检测完未发现有配置问题,还是出来相同的错误:授权入口页所在域名 空?https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/troubleshooting/authorization_troubleshooting.htmlhttps://developers.weixin.qq.com/miniprogram/dev/framework/ [图片][图片]
04-02解决了不,我的也是40234 invalid signature rid: 659d0244-4fe369a9-6e05edfc
php使用同城配送时接入微信api安全出错,报错:934011,怎么解决?报错信息:string(86) "{"errcode":934011,"errmsg":"request_body is required rid: 64adfa6f-4b7c30ee-0a560363"}" 我的代码:其中app_id local_sn local_key等均已省略 <?php namespace backend\modules\v4\controllers; use backend\components\BaseApiController; use backend\components\helper\WxDelivery; class TestController extends BaseApiController { private $param = [ 'app_id' => '', 'url' => 'https://api.weixin.qq.com/cgi-bin/express/intracity/balancequery', 'local_sn' => '', 'local_key' => '', 'store_id' => '', 'out_store_id' => '', ]; private $key =[ 'sn'=>'', 'key'=>'-----BEGIN RSA PRIVATE KEY----- 省略 -----END RSA PRIVATE KEY-----' ]; public function actionTest() { $param = $this->param; $accessToken = WxDelivery::getAccessToken(); $url = $this->param['url'] . "?access_token=" . $accessToken; $newRe = $this->getRequestParam(); $signature = $this->getSignature($newRe); $headerArray =['Wechatmp-Appid'=>$param['app_id'],'Wechatmp-TimeStamp'=>$newRe['ts'],'Wechatmp-Signature'=>$signature]; $data = WxDelivery::curlPost($url, $newRe['reqData'],$headerArray); var_dump($data); } public function getRequestParam() { $param = $this->param; // $param['local_key'] = base64_decode($param['local_key']); $req = ['store_id' => $param['store_id'], 'out_store_id' => $param['out_store_id']]; $time = time(); //16位随机字符串 $nonce = rtrim(base64_encode(random_bytes(16)), '='); $addReq = ["_n" => $nonce, "_appid" => $param['app_id'], "_timestamp" => $time]; $realReq = array_merge($addReq, $req); $realReq = json_encode($realReq); //额外参数 $aad = $param['url'] . "|" . $param['app_id'] . "|" . $time . "|" . $param['local_sn']; //12位随机字符 $iv = random_bytes(12); $cipher = openssl_encrypt($realReq, "aes-256-gcm", $param['local_key'], OPENSSL_RAW_DATA, $iv, $tag, $aad); $iv = base64_encode($iv); $data = base64_encode($cipher); $authTag = base64_encode($tag); $reqData = ["iv" => $iv, "data" => $data, "authtag" => $authTag]; return ['ts' => $time, 'reqData' => json_encode($reqData)]; } public function getSignature($newRe) { $param = $this->param; $keys = $this->key; $time = $newRe['ts']; $url = $param['url']; $appId = $param['app_id']; $reqData = $newRe['reqData']; $payload = "$url\n$appId\n$time\n$reqData"; $key = openssl_pkey_get_private($keys['key']); $signature = ''; openssl_sign($payload, $signature, $key, OPENSSL_ALGO_SHA256); openssl_free_key($key); return base64_encode($signature); } } <?php namespace backend\components\helper; use common\helpers\MiniHelper; class WxDelivery { /** * Name:获取小程序的token * User: zcw * Date: 2023/7/11 * Time: 9:50 * @return bool|int|mixed|string */ public static function getAccessToken() { $qr = new MiniHelper(); // 获取到的 access_token return $qr->getAccessToken(); } public static function curlPost($url, $field,$header) { $headerArray = array("Content-type:application/json;charset=utf-8", "Accept:application/json"); $headerArray = array_merge($headerArray,$header); $curl = curl_init(); curl_setopt($curl, CURLOPT_HTTPHEADER, $headerArray); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, $field); $str = curl_exec($curl); curl_close($curl); return $str; }
01-09客户授权给了其他的三方平台,然后又授权给了我们的三方平台,客户一直说授权过了,结果发现缺少了好多的小程序授权权限
小程序授权三方平台代发布,api is unauthorized to component?result: "{"errcode":61007,"errmsg":"api is unauthorized to component rid: 603bb1db-73edd24b-4cd8fe7e"}" 这个是错误代码, 具体问题,我这个三方平台有了10几个客户了,最近几个授权发布,所有相关接口到报这个错误。 包含https://api.weixin.qq.com/wxa/get_latest_auditstatus https://api.weixin.qq.com/wxaapi/newtmpl/gettemplate 等等,都这样。这个目标小程序只授权给我一家,他所属的公众号有授权给两家。
2023-03-17我的是微信公众号H5网页,遇到一个客户,出现这种问题,其他人都没事,就他的手机出问题了,安卓版本是10 微信版本是7.0.17 牌子是honor 10 lite 希望可以蹲到答案
小程序调试错误:请确认公众号为认证服务号调试小程序前端时,出现了这个错误。请问这是为什么? 微信小程序的服务器配置和业务域名都配好了。但是运行小程序后,就出错。 [图片] 微信平台的配置: [图片] 小程序微擎后台配置: [图片] [图片]
2020-08-06