收藏
回答

同城配送所有的API为什么老是报47001?

创建门店api

https://api.weixin.qq.com/cgi-bin/express/intracity/querystore?access_token={ACCESS_TOKEN}

查询门店api

https://api.weixin.qq.com/cgi-bin/express/intracity/createstore?access_token={ACCESS_TOKEN}

都是报同样的错误47001,大神帮忙看看问题在哪,而且我已经关闭了API安全

=========================================下面是代码==========================================

<?php

$curl = curl_init();

curl_setopt_array($curl, array(

   CURLOPT_URL => 'https://api.weixin.qq.com/cgi-bin/express/intracity/createstore?access_token=xxxxxxxxxxxxxxxxxxxxxx',

   CURLOPT_RETURNTRANSFER => true,

   CURLOPT_ENCODING => '',

   CURLOPT_MAXREDIRS => 10,

   CURLOPT_TIMEOUT => 0,

   CURLOPT_FOLLOWLOCATION => true,

   CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,

   CURLOPT_CUSTOMREQUEST => 'POST',

   CURLOPT_POSTFIELDS =>'{

    "out_store_id": \'7758521\',

    "store_name": \'大脸猫和蓝皮书\'

}',

   CURLOPT_HTTPHEADER => array(

      'Accept: application/json',

      'User-Agent: Apifox/1.0.0 (https://apifox.com)',

      'Content-Type: application/json;charset=utf-8',

      'Host: api.weixin.qq.com',

      'Connection: keep-alive'

   ),

));

$response = curl_exec($curl);

curl_close($curl);

echo $response;

==========================最后就报错47001

回答关注问题邀请回答
收藏

2 个回答

  • 视频号小店技术专员-hengrui
    视频号小店技术专员-hengrui
    2023-08-22

    你好,同城配送的接口需要对参数进行加密和签名

    2023-08-22
    有用
    回复
  • Reily
    Reily
    2023-08-22

    感谢支持,已经解决,php确实不太好弄,挂了nodejs配合已完美解决

    2023-08-22
    有用
    回复 1
    • melody
      melody
      01-08回复可乐
      40234 invalid signature我也遇到,请问解决没?我用官方提供的JAVA demo架设了个本地WEB,给程序提供签名,结果还是签名错误,实在找不出什么问题了
      01-08
      回复
登录 后发表内容