一物一码激活二维码接口,返回了:“该条码未在编码中心注册,将进入审核。请于24h后尝试重新激活 hint: [Yg4HEa0954ld42][2020-07-06 10:52:34]
”,参数中product_code使用的条码是可以在http://www.gs1cn.org/Service/queryTools/External.aspx这个网站查到的,为什么还会提示未在编码中心注册
呢?
public function codeactive()
{
$weObj = new \Wechat($this->options);
$access_token = $weObj->checkAuth();
$data['application_id'] = $application_id;
$data['activity_name'] = "test_name";
$data['product_brand'] = "test_brand";
$data['product_title'] = "test_title";
$data['product_code'] = "04589718711119";
$data['wxa_appid'] = $appid;
$data['wxa_path'] = "pages/index/index";
$data['wxa_type'] = "0";
$data['code_start'] = "0";
$data['code_end'] = "99";
$url = "https://api.weixin.qq.com/intp/marketcode/codeactive?access_token=".$access_token;
$res = $this->wxHttpsRequest($url,'post',json_encode($data));
$res = json_decode($res,true);
dump($res);
}
返回结果:
你好,请重试一下。