- 报告一个小商店API-BantchAdd-BUG
这个接口在接受到申请的数据组后,后面不是按顺序提交的SKU内容,导致最终在小商店里的排序是是乱序输出的。 小商店前台的输出排序规格应该只是根据自动生成的SKUID,但是采用这个接口生成的SKUID并不是按照提交进去的顺序一个一个去生成的。 以下是未例代码:SKUS内容中的SKUID并没有按数据输入的顺序同步生成。 {"errcode":0,"data":{"product_id":29578793,"out_product_id":"602577583670","update_time":"2021-04-24 14:15:11"}} {"errcode":0, "skus":[ {"product_id":29578793,"out_product_id":"","out_sku_id":"","thumb_img":"https:\/\/gd2.alicdn.com\/imgextra\/i4\/60699950\/O1CN01vciE2L2NN9RtTQMdd_!!60699950.jpg","sale_price":0,"market_price":0,"stock_num":99,"code":"","barcode":"","sku_id":38934857,"sku_attrs":[{"attr_key":"规格型号","attr_value":"0-150 0.02老款(银色)"}],"status":0,"sku_code":""}, {"product_id":29578793,"out_product_id":"","out_sku_id":"","thumb_img":"https:\/\/gd3.alicdn.com\/imgextra\/i4\/60699950\/O1CN01vciE2L2NN9RtTQMdd_!!60699950.jpg","sale_price":0,"market_price":0,"stock_num":99,"code":"","barcode":"","sku_id":38934858,"sku_attrs":[{"attr_key":"规格型号","attr_value":"0-200 0.02老款(银色)"}],"status":0,"sku_code":""}, {"product_id":29578793,"out_product_id":"","out_sku_id":"","thumb_img":"https:\/\/gd3.alicdn.com\/imgextra\/i4\/60699950\/O1CN01vciE2L2NN9RtTQMdd_!!60699950.jpg","sale_price":0,"market_price":0,"stock_num":99,"code":"","barcode":"","sku_id":38919783,"sku_attrs":[{"attr_key":"规格型号","attr_value":"0-300 0.02老款(银色)"}],"status":0,"sku_code":""}, {"product_id":29578793,"out_product_id":"","out_sku_id":"","thumb_img":"https:\/\/gd3.alicdn.com\/imgextra\/i4\/60699950\/O1CN01vciE2L2NN9RtTQMdd_!!60699950.jpg","sale_price":0,"market_price":0,"stock_num":99,"code":"","barcode":"","sku_id":38925526,"sku_attrs":[{"attr_key":"规格型号","attr_value":"0-150 0.01老款(银色)"}],"status":0,"sku_code":""}, {"product_id":29578793,"out_product_id":"","out_sku_id":"","thumb_img":"https:\/\/gd2.alicdn.com\/imgextra\/i4\/60699950\/O1CN01vciE2L2NN9RtTQMdd_!!60699950.jpg","sale_price":0,"market_price":0,"stock_num":99,"code":"","barcode":"","sku_id":38915855,"sku_attrs":[{"attr_key":"规格型号","attr_value":"0-200 0.01老款(银色)"}],"status":0,"sku_code":""}, {"product_id":29578793,"out_product_id":"","out_sku_id":"","thumb_img":"https:\/\/gd1.alicdn.com\/imgextra\/i4\/60699950\/O1CN01vciE2L2NN9RtTQMdd_!!60699950.jpg","sale_price":0,"market_price":0,"stock_num":99,"code":"","barcode":"","sku_id":38934859,"sku_attrs":[{"attr_key":"规格型号","attr_value":"0-300 0.01老款(银色)"}],"status":0,"sku_code":""}, {"product_id":29578793,"out_product_id":"","out_sku_id":"","thumb_img":"https:\/\/gd4.alicdn.com\/imgextra\/i3\/60699950\/O1CN014CVoLm2NN9RtTGpbN_!!60699950.jpg","sale_price":0,"market_price":0,"stock_num":99,"code":"","barcode":"","sku_id":38938321,"sku_attrs":[{"attr_key":"规格型号","attr_value":"0-150 0.02新款金属壳(金色)"}],"status":0,"sku_code":""}, {"product_id":29578793,"out_product_id":"","out_sku_id":"","thumb_img":"https:\/\/gd4.alicdn.com\/imgextra\/i3\/60699950\/O1CN014CVoLm2NN9RtTGpbN_!!60699950.jpg","sale_price":0,"market_price":0,"stock_num":99,"code":"","barcode":"","sku_id":38938322,"sku_attrs":[{"attr_key":"规格型号","attr_value":"0-200 0.02新款金属壳(金色)"}],"status":0,"sku_code":""}, {"product_id":29578793,"out_product_id":"","out_sku_id":"","thumb_img":"https:\/\/gd2.alicdn.com\/imgextra\/i3\/60699950\/O1CN014CVoLm2NN9RtTGpbN_!!60699950.jpg","sale_price":0,"market_price":0,"stock_num":99,"code":"","barcode":"","sku_id":38938323,"sku_attrs":[{"attr_key":"规格型号","attr_value":"0-300 0.02新款金属壳(金色)"}],"status":0,"sku_code":""}, {"product_id":29578793,"out_product_id":"","out_sku_id":"","thumb_img":"https:\/\/gd4.alicdn.com\/imgextra\/i3\/60699950\/O1CN014CVoLm2NN9RtTGpbN_!!60699950.jpg","sale_price":0,"market_price":0,"stock_num":99,"code":"","barcode":"","sku_id":38925527,"sku_attrs":[{"attr_key":"规格型号","attr_value":"0-150 0.01新款金属壳(金色)"}],"status":0,"sku_code":""}, {"product_id":29578793,"out_product_id":"","out_sku_id":"","thumb_img":"https:\/\/gd4.alicdn.com\/imgextra\/i3\/60699950\/O1CN014CVoLm2NN9RtTGpbN_!!60699950.jpg","sale_price":0,"market_price":0,"stock_num":99,"code":"","barcode":"","sku_id":38923657,"sku_attrs":[{"attr_key":"规格型号","attr_value":"0-200 0.01新款金属壳(金色)"}],"status":0,"sku_code":""}, {"product_id":29578793,"out_product_id":"","out_sku_id":"","thumb_img":"https:\/\/gd4.alicdn.com\/imgextra\/i3\/60699950\/O1CN014CVoLm2NN9RtTGpbN_!!60699950.jpg","sale_price":0,"market_price":0,"stock_num":99,"code":"","barcode":"","sku_id":38936459,"sku_attrs":[{"attr_key":"规格型号","attr_value":"0-300 0.01新款金属壳(金色)"}],"status":0,"sku_code":""}, {"product_id":29578793,"out_product_id":"","out_sku_id":"","thumb_img":"https:\/\/gd2.alicdn.com\/imgextra\/i2\/60699950\/O1CN01m16CFk2NN9RrxPLaF_!!60699950.jpg","sale_price":0,"market_price":0,"stock_num":99,"code":"","barcode":"","sku_id":38932853,"sku_attrs":[{"attr_key":"规格型号","attr_value":"0-500 0.02单向爪"}],"status":0,"sku_code":""} ]}
2021-04-24 - 报告一个Bug
https://developers.weixin.qq.com/doc/ministore/minishopopencomponent/API/spu/get_spu.html [图片] 说好的produtct和 out_product_id任选一个,说话不算话啊官方这是嘛意思,要不你就要求必须是唯一要不就不要告诉我们二选一可行嘛。 string(75) "{"errcode":100002,"errmsg":"SPU not exist rid: 5fc61b4a-127235c5-68d820b4"}" 看看这个使用out_product_id获取的结果。
2020-12-01 - [BUG]小商店API-ADD,GET_LIST
官方官服在吗? 使用添加接口:https://api.weixin.qq.com/product/spu/add?access_token=xxxxxxxxx 可以得到正确的包含out_product_id的返回值,但是使用以下get_list接口获取到的数据中不包括out_product_id, 而且说好的product_id和out_product_id二选一,但是使用out_product_id就是一直获取不到数据,这个是不是有BUG。 https://api.weixin.qq.com/product/spu/get_list?access_token=xxxxxxxxx [图片]
2020-11-07 - [上架失败]: 错误代码:100002 怎么解决,什么问题?
[图片] 1、调用SPU_获取商品接口,这里明明说好的,product_id 和 out_product_id 都可以支持提交索引数据的,可是为什么使用product_id就可以获取数据,而使用out_product_id就是返回100002错误,这个错误还是不在返回码中明确的错误代码。 {"errcode":100002,"errmsg":"SPU not exist rid: 5f859511-6949495d-13fa2865"} 2、使用out_product_id既不能获取商品信息也不能发布上架,SPU_上架商品也是错误,是9401002错误(SPU不存在) {"errcode":9401002,"errmsg":"Check service auth fail rid: 5f859685-2b38c3cf-5ea4fd3b"} 注:使用所谓的2选一中的另一个 "product_id" 就都不存在问题了,不是说任选其一嘛,为啥又只能是它了呢?
2020-10-13 - 微信支付JSAPI为什么返回的是string(105)""这样的空值?
如题,有没遇到这种情况的? $trade_type = "JSAPI"; $signA = array("appid"=>$appid,"mch_id"=>$mch_id,"nonce_str"=>$nonce_str, "body"=>$body,"out_trade_no"=>$out_trade_no,"total_fee"=>$total_fee, "spbill_create_ip"=>$spbill_create_ip,"notify_url"=>$notify_url, "trade_type"=>$trade_type,"openid"=>$openid,"device_info"=>$device_info); $sign = GetPrePayId_Sign_ASCII_ASC_Encode($signA,$mykey="",$isencode=false); $data = '<xml>'; $data .= Construct_XmlTagStr("appid",$appid); $data .= Construct_XmlTagStr("mch_id",$mch_id); $data .= Construct_XmlTagStr("nonce_str",$nonce_str); $data .= Construct_XmlTagStr("body",$body); $data .= Construct_XmlTagStr("out_trade_no",$out_trade_no); $data .= Construct_XmlTagStr("total_fee",$total_fee); $data .= Construct_XmlTagStr("spbill_create_ip",$spbill_create_ip); $data .= Construct_XmlTagStr("notify_url",$notify_url); $data .= Construct_XmlTagStr("trade_type",$trade_type); $data .= Construct_XmlTagStr("openid",$openid); $data .= Construct_XmlTagStr("device_info",$device_info); $data .= Construct_XmlTagStr("sign",$sign); $data .= "</xml>"; $url = "https://api.mch.weixin.qq.com/pay/unifiedorder"; $res = WxPayCurlPost($url,$data); function WxPayCurlPost($url,$xml_data,$useCert=false){//post推送 $ch = curl_init(); curl_setopt ( $ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); if($useCert){ //设置证书 //使用证书:cert 与 key 分别属于两个.pem文件 //证书文件请放入服务器的非web目录下 $sslCertPath = ""; $sslKeyPath = ""; curl_setopt($ch,CURLOPT_SSLCERTTYPE,'PEM'); curl_setopt($ch,CURLOPT_SSLCERT, $sslCertPath); curl_setopt($ch,CURLOPT_SSLKEYTYPE,'PEM'); curl_setopt($ch,CURLOPT_SSLKEY, $sslKeyPath); } curl_setopt ( $ch, CURLOPT_POST, true ); curl_setopt ( $ch, CURLOPT_POSTFIELDS, $xml_data ); curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true ); // curl_setopt ( $ch, CURLOPT_TIMEOUT, true ); $res = curl_exec($ch); // var_dump($res); curl_close($ch); return $res; } function GetPrePayId_Sign_ASCII_ASC_Encode($paramArray,$mykey, $isencode=false){ $paramStr = ''; ksort($paramArray); $i = 0; foreach ($paramArray as $iKey => $value) { if ($iKey == 'Signature'){ continue; } if ($i == 0){ $paramStr .= ''; }else{ $paramStr .= '&'; } $paramStr .= $iKey . '=' . ($isencode?urlencode($value):$value); ++$i; } $stringSignTemp=$paramStr."&key=".$mykey; $sign=strtoupper(md5($stringSignTemp)); return $sign; }
2020-02-01 - H5页面跳转到指定精品店可以实现吗?
如是,有不有办法从H5中发起跳转转到对应商品的精品店购买页面。
2019-08-18 - 同公司运营的两个不同名称的营业执照怎么添加到附近的门店中
- 需求的场景描述(希望解决的问题) 同公司运营的多个不同名称的营业执照怎么添加到附近的门店中 - 希望提供的能力 添加若干个同公司在不同地域经营的门店,两个不同名称的营业执照怎么添加到附近的门店中
2019-01-21 - 门店小程序总是不通过
因为想把异地的分公司带入关联到公众号的附近小程序中,所以我这边想添加一个新的门店小程序,采用相关性注册总是被你们的审核驳回。 具体要怎么样,咱这边才可以让我通过审核呢。
2018-09-03 - 小程序打开货架商品链接
如题,小程序可以实在点击图片跳转到已申请的微信小店里去引导客户拍付下单吗? 就是给一个商品链接,让用户可以从开发版的小程序直接点击打开对应小店货架上的商品购买。
2017-12-09 - PHP开发环境,真机上不显示。
如题,要怎么样才能解决这个问题。 库是1.6.4的。 服务器是用的开发者工具生成的开发环境PHP。 在开发者工具里头测试都没有问题。到了真机上就显示不出来了。
2017-11-10