- 【小程序直播】创建直播间接口传入横屏参数无效?
请求URL:https://api.weixin.qq.com/wxaapi/broadcast/room/create?access_token= 请求参数: { "name": "测试直播", "type": 0, "anchorName": "测试", "startTime": 1594721340, "endTime": 1594732158, "anchorWechat": "PSP", "screenType": 1, "closeLike": 0, "closeGoods": 0, "closeComment": 0, "coverImg": "9S-FW9e10ZqlfmOM3_Rdkya2eVcXZp4quIs1Ek1XSOba0tfZnDxQJuGGFFrlrWjA", "shareImg": "GgOHWo5XtGzsc6NJXlRyaNytK-yAGyl2kZiUAb6O7Mt1EOFvvjWx6Kny3dcfgIvC" } 接口文档定义screenType为1时横屏展示直播,按照接口文档正常传入screenType创建了直播间,但是开播后并未横屏展示。 [图片]
2020-07-14 - 微信公众号OCR识别接口调用失败?
有商家今天反馈营业执照无法识别,通过查看日志发现自7月10日开始调用营业执照OCR识别接口时一直返回“require https hints”,比对文档发现接口 http://api.weixin.qq.com/cv/ocr/bizlicense?img_url=ENCODE_URL&access_token=ACCESS_TOCKEN并未更新,替换成https后依旧请求失败 “require POST method hint”,本来很简单的一个问题现在由于突然无任何提前通知的改动导致接口无法正常使用了,希望官方看到后能及时回复一下。
2020-07-13 - 小程序直播撤回商品审核报错?
请求示例 请求URL: https://api.weixin.qq.com/wxaapi/broadcast/goods/resetaudit?access_token=35_BgW_YgUXh_6hn3UxQ4X2yo_R3nYLYy3JAtk6RirrC_fZH5lktOFiwCHQs9KU7B6rZdC6V436miSy_y_HEgIr_e0pz7NRQcKn4Z-EvvChlZ4u5iiAoOkY16Fd3PZGZH194Z0bOHf68XAgl0ggHRScAHDMWX 请求参数: {"auditid":"525074490","goodsId":"29"} 请求头:application/json 返回结果 {"errcode":300009,"errmsg":"goods audit rest fail"} auditid是刚提交商品审核生成的,提交成功后马山撤回失败。
2020-07-09 - 公众号微信卡券创建会员卡接口错误信息提示模糊不清?
1、创建会员卡接口HTTP请求方式: POSTURL:https://api.weixin.qq.com/card/create?access_token=ACCESS_TOKEN post数据如下: { "card": { "card_type": "MEMBER_CARD", "member_card": { "background_pic_url": "http://mmbiz.qpic.cn/mmbiz_png/ibeQcclgN4X0Ivicwdrs6vHibj6TtiaS7CPzvNhKnIBJ55js9GaoXEA4sh4aoKSZcSavxuuq5RnaVTc09w1zBEbSjg/0", "base_info": { "logo_url": "http://mmbiz.qpic.cn/mmbiz_jpg/ibeQcclgN4X0Ivicwdrs6vHibj6TtiaS7CPzIFtsdfLvY8O1iafWPVCweVTCVK6lWl6ricDUGnNib11JnZT5Sv12mAQgg/0", "code_type": "CODE_TYPE_TEXT", "pay_info": { "swipe_card": { "is_swipe_card": true } }, "brand_name": "乐墨测试", "title": "会员卡", "color": "Color010", "notice": "卡券的领取规则", "description": "普卡会员:\n银卡会员:\nV4:\n钻石:\n星耀:\n", "sku": { "quantity": 100000000 }, "get_limit": 1, "use_custom_code": false, "can_give_friend": true, "date_info": { "type": "DATE_TYPE_PERMANENT" }, "custom_url_name": "快速买单", "custom_url_sub_title": "立即进入", "custom_app_brand_user_name": "gh_7e9787cd2ef1@app", "custom_app_brand_pass": "/pages/tabSon/me/payment/main", "promotion_url_name": "优惠券", "promotion_url_sub_title": "大额优惠券等你拿", "promotion_app_brand_user_name": "gh_7e9787cd2ef1@app", "promotion_app_brand_pass": "/pages/tabMain/pages/tab/coupons/main", "need_push_on_view": false }, "prerogative": "卡券的领取规则", "auto_activate": false, "supply_bonus": false, "supply_balance": true, "balance_app_brand_user_name": "gh_7e9787cd2ef1@app", "balance_app_brand_pass": "/pages/tabSon/me/balance/main", "custom_field1": { "name_type": "FIELD_NAME_TYPE_COUPON", "app_brand_user_name": "gh_7e9787cd2ef1@app", "app_brand_pass": "/pages/tabSon/me/card/coupons/main" }, "custom_field2": { "name_type": "FIELD_NAME_TYPE_LEVEL", "app_brand_user_name": "gh_7e9787cd2ef1@app", "app_brand_pass": "/pages/tabSon/me/card/cardDetail/main" }, "custom_cell1": { "name": "会员卡详情", "tips": "立即进入", "url": "http://www.example.com", "app_brand_user_name": "gh_7e9787cd2ef1@app", "app_brand_pass": "/pages/tabSon/me/card/cardDetail/main" } } } } 返回错误: { "errcode": 41011, "errmsg": "missing required fields! please check document and request json! hint: [4_ej_0703e108]" } 反复对比接口文档必填参数,没有发现差异性,不知道是哪个参数出问题,错误信息提示的也不确切,希望官方给一个说法。
2020-02-11 - 公众号微信卡券创建会员卡接口错误信息提示模糊不清?
1、创建会员卡接口HTTP请求方式: POSTURL:https://api.weixin.qq.com/card/create?access_token=ACCESS_TOKEN post数据如下: { "card": { "card_type": "MEMBER_CARD", "member_card": { "background_pic_url": "http://mmbiz.qpic.cn/mmbiz_png/ibeQcclgN4X0Ivicwdrs6vHibj6TtiaS7CPzvNhKnIBJ55js9GaoXEA4sh4aoKSZcSavxuuq5RnaVTc09w1zBEbSjg/0", "base_info": { "logo_url": "http://mmbiz.qpic.cn/mmbiz_jpg/ibeQcclgN4X0Ivicwdrs6vHibj6TtiaS7CPzIFtsdfLvY8O1iafWPVCweVTCVK6lWl6ricDUGnNib11JnZT5Sv12mAQgg/0", "code_type": "CODE_TYPE_TEXT", "pay_info": { "swipe_card": { "is_swipe_card": true } }, "brand_name": "乐墨测试", "title": "会员卡", "color": "Color010", "notice": "卡券的领取规则", "description": "普卡会员:\n银卡会员:\nV4:\n钻石:\n星耀:\n", "sku": { "quantity": 100000000 }, "get_limit": 1, "use_custom_code": false, "can_give_friend": true, "date_info": { "type": "DATE_TYPE_PERMANENT" }, "custom_url_name": "快速买单", "custom_url_sub_title": "立即进入", "custom_app_brand_user_name": "gh_7e9787cd2ef1@app", "custom_app_brand_pass": "/pages/tabSon/me/payment/main", "promotion_url_name": "优惠券", "promotion_url_sub_title": "大额优惠券等你拿", "promotion_app_brand_user_name": "gh_7e9787cd2ef1@app", "promotion_app_brand_pass": "/pages/tabMain/pages/tab/coupons/main", "need_push_on_view": false }, "prerogative": "卡券的领取规则", "auto_activate": false, "supply_bonus": false, "supply_balance": true, "balance_app_brand_user_name": "gh_7e9787cd2ef1@app", "balance_app_brand_pass": "/pages/tabSon/me/balance/main", "custom_field1": { "name_type": "FIELD_NAME_TYPE_COUPON", "app_brand_user_name": "gh_7e9787cd2ef1@app", "app_brand_pass": "/pages/tabSon/me/card/coupons/main" }, "custom_field2": { "name_type": "FIELD_NAME_TYPE_LEVEL", "app_brand_user_name": "gh_7e9787cd2ef1@app", "app_brand_pass": "/pages/tabSon/me/card/cardDetail/main" }, "custom_cell1": { "name": "会员卡详情", "tips": "立即进入", "url": "http://www.example.com", "app_brand_user_name": "gh_7e9787cd2ef1@app", "app_brand_pass": "/pages/tabSon/me/card/cardDetail/main" } } } } 返回错误: { "errcode": 41011, "errmsg": "missing required fields! please check document and request json! hint: [4_ej_0703e108]" } 反复对比接口文档必填参数,没有发现差异性,不知道是哪个参数出问题,错误信息提示的也不确切,希望官方给一个说法。
2020-02-11 - 特约商户申请后审核时间问题?
大约10天前申请了特约商户,利用返回的申请单号:2000002135202120, 查询申请审核结果时,状态始终为:APPLYMENT_STATE_AUDITING。麻烦知情人士反馈一下原因,谢谢~ { "status": , "msg": "", "content": { "applyment_id": 2000002135202120, "applyment_state": "APPLYMENT_STATE_AUDITING", "applyment_state_msg": "1、开户处理中;2、可让超级管理员用微信打开“签约链接”,完成绑定微信号后,申请单进度将通过微信公众号通知超级管理员,引导完成后续步骤", "audit_detail": [], "business_code": "2203cc653e5ed06e079f8329dbdac812", "sign_url": "https://pay.weixin.qq.com/index.php/extend/applyment4sub_weapp/showQRCode?applyment_id=2000002135202120&sign=********", }, "access": true, "refresh": false }
2020-01-15 - 特约商户申请后审核时间问题?
大约10天前申请了特约商户,利用返回的申请单号:2000002135202120 查询申请审核结果时,状态始终为:APPLYMENT_STATE_AUDITING。麻烦知情人士反馈一下原因,谢谢~ { "status": 1, "msg": "", "content": { "applyment_id": 2000002135202120, "applyment_state": "APPLYMENT_STATE_AUDITING", "applyment_state_msg": "1、开户处理中;2、可让超级管理员用微信打开“签约链接”,完成绑定微信号后,申请单进度将通过微信公众号通知超级管理员,引导完成后续步骤", "audit_detail": [], "business_code": "2203cc653e5ed06e079f8329dbdac812", "sign_url": "https://pay.weixin.qq.com/index.php/extend/applyment4sub_weapp/showQRCode?applyment_id=2000002135202120&sign=********", }, "access": true, "refresh": false }
2020-01-15 - 调用第三方平台修改小程序头像接口报错?invaid register type hint
invaid register type hint: [zQI4GA08221958]
2020-01-10 - 服务商特约商户进件提交申请单密文加密错误
错误信息: {"code""PARAM_ERROR","message""请确认待处理的消息是否为加密后的密文"} 看到特约商户更新了文档之后,我采用的是最新的API-v3接口规则 请求头如下(证书序列号是微信支付平台序列号): array("Content-Type: application/json","Accept:application/json","User-Agent:".$_SERVER['HTTP_USER_AGENT'],"Authorization:"$this->authorization,"Wechatpay-Serial:"$this->cert_sn) 验签如下(验签使用的是商户平台私钥): $url_parts = parse_url($url); $canonical_url = ($url_parts['path'] . (!empty($url_parts['query'])) ? "?${url_parts['query']}" : "")); $message = strtoupper($http_method).'\n'.canonical_url.'\n'. $timestamp.'\n'. $nonce.'\n'. $body.'\n'; $pri_key_string = file_get_contents($this->apiclient_key); $pri_key = openssl_get_privatekey($pri_key_string); if(!openssl_sign(message, raw_sign, pri_key, 'sha256WithRSAEncryption')){ throw new WxPayException('make sign failed:'.PHP_EOL); } $sign = base64_encode($raw_sign); 加密敏感信息(使用微信支付平台公钥): $pub_key_string = file_get_contents($this->cert_path); $pub_key = openssl_get_publickey($pub_key_string); $encrypted = ''; if(openssl_public_encrypt($str,$encrypted,$pub_key,OPENSSL_PKCS1_OAEP_PADDING)){ return base64_encode($encrypted); } 麻烦看一下是什么问题,官方给的错误信息没有明确指出是哪个字段加密出错,现在找不到处理的办法了。
2019-12-31