你好,点击蓝色对接指引可以进入查看。
物流助手打印电子面单如何对接快递管家?[图片]
05-21你好,目前还未支持分账,请留意平台后续相关功能。
请问一下服务商怎么赚流水的分润呢请问一下服务商怎么赚流水的分润呢
05-21你好,因服务未到期,需要原服务商跟商家确认好不使用,要关闭接口权限,联系服务市场客服(页面右上角)https://fuwu.weixin.qq.com/ 处理关闭哦。然后新的服务商联系商家重新购买获得权限,如果商家需要先解开,7天内的订单请通过【微信服务市场】小程序-我的-我的订单-全部订单,进入订单里申请。
怎么取消服务市场授权的服务商接口授权?原先已经对接了服务商,在上一个服务商未到期的的情况下对接下一个服务商后,新的服务商拉取微信小店资金流水提示“失败,查询资金流水列表失败:api is unauthorized to component rid: 682c5abe-7f63147c-6e12c6de” 产品技术意思是上一个服务商已经占用了接口,需要取消上一个服务商授权,现在的问题是怎么取消上一个服务商的授权呢? 已经找了原服务商、新服务商、微信小店客服,问题一直解决不了,谁都不知道哪里取消这个授权
05-21你好,请参考https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/express_open_msg.html
无忧退货,用户填写物流单号后,会推送消息吗?使用无忧退货插件, 但用户填写了退回物流,后台如何知道已经填写了呢?有推送消息吗?
05-20你好,同城配送是https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/intracity_service.html
小程序后台开通了同城配送,但是还是提示48001?[图片][图片]
05-20你好,哪个功能,请发一下文档
物流组件+消息推送”咨询?物流企业如何接入长期消息推送
05-20你好,参考https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/intracity_service.html#_2-5-%E9%97%A8%E5%BA%97%E8%BF%90%E8%B4%B9%E5%85%85%E5%80%BC
微信同城配送配送费充值如何按总账户充值?微信同城配送配送费充值如何按总账户充值? 目前只能按单门店一个店一个店充值,比较麻烦,如何按总账号进行充值 [图片]
05-20你好,是哪家快递,查询信息发一下
快递官网是能查找到的,但为什么调用传运单接口返回运单不存在?请求如下,运单号是可以找快递官网查询到的 请求参数: {"goods_info":{"detail_list":[{"goods_name":"沃品wopow万年历","goods_img_url":"https://minoss.senwell.cn/scrm-online/Public/uploads/2/PROD/20240321/65fbf16d1d3348.57744560.jpg"}]},"openid":"onoYD0UU9YtxD9v-HwZgweJrKlyo","waybill_id":"78900097352406","trans_id":"4200002641202504237689431278","receiver_phone":"1822600000"} 响应:{"errcode":931023,"errmsg":"waybill not exist detail: [运单不存在] rid: 68099b2a-796e90fb-741fa036"}
05-20你好,建议检查地址信息是否正确有效
物流服务添加门店报错?在微信公众平台物流服务中添加门店的时候老是报错“code: 10000,{"errmsg":"address info can not convert to id"}”
05-20你好,建议按照提示检查url是否正确
物流组件真的可以用吗?为什么调用的时候总是出现 "invalid url"?这个云函数调用的时候一直报错: 云函数返回结果: {errMsg: "cloud.callFunction:ok", result: {…}, requestID: "7cd07d46-2454-4024-934f-6a37a34b364b"}errMsg: "cloud.callFunction:ok"requestID: "7cd07d46-2454-4024-934f-6a37a34b364b"result: {success: false, error: "invalid url rid: 67f8b07c-55bea4f6-516feb3b", errorCode: 40066}__proto__: Object index.js? [sm]:755 获取 waybillToken 失败: {success: false, error: "invalid url rid: 67f8b07c-55bea4f6-516feb3b", errorCode: 40066}(env: Windows,mp,1.06.2503281; lib: 3.7.12) (anonymous) @ index.js? [sm]:755 Promise.then (async) getWaybillToken @ index.js? [sm]:728 (anonymous) @ index.js? [sm]:613 Promise.then (async) checkLogistics @ index.js? [sm]:564 index.js? [sm]:761 错误信息: invalid url rid: 67f8b07c-55bea4f6-516feb3b(env: Windows,mp,1.06.2503281; lib: 3.7.12) 下面是云函数代码: // 云函数 getwaybilltoken/index.js const cloud = require('wx-server-sdk'); cloud.init({ env: 'xxxxxxxxxxxxxxxx' }); // 引入请求库 const rp = require('request-promise'); exports.main = async (event, context) => { console.log('接收到的参数:', event); try { // 获取access_token const tokenRes = await cloud.callFunction({ name: 'getaccesstoken' }); const accessToken = tokenRes.result.accessToken; console.log('获取到的accessToken:', accessToken); if (!accessToken) { console.log('未获取到有效的accessToken'); return { success: false, error: 'Failed to get access_token' }; } // 获取当前用户的openid const openid = event.openid || cloud.getWXContext().OPENID; console.log('使用的openid:', openid); // 处理商品信息,确保图片URL有效 let detailList = []; const goods = event.goods; const defaultImgUrl = "https://res.wx.qq.com/wxdoc/dist/assets/img/0.4cb08bb4.jpg"; // 微信官方示例图片 // 准备商品数据 if (goods && Array.isArray(goods) && goods.length > 0) { // 临时存储需要转换的云文件ID const cloudFileIDs = []; const goodsItemsMap = {}; // 用于关联云文件ID和商品项 goods.forEach((item, index) => { const imgUrl = item.image_url || item.image || ''; // 检查是否是云存储路径 if (imgUrl && imgUrl.startsWith('cloud://')) { cloudFileIDs.push(imgUrl); goodsItemsMap[imgUrl] = index; } }); // 如果有云存储路径,先转换为临时URL if (cloudFileIDs.length > 0) { try { console.log('开始转换云文件URL,文件数:', cloudFileIDs.length); const tempFileResult = await cloud.getTempFileURL({ fileList: cloudFileIDs }); console.log('获取临时文件URL结果:', tempFileResult); // 处理临时URL结果 if (tempFileResult && tempFileResult.fileList) { tempFileResult.fileList.forEach(fileItem => { if (fileItem.tempFileURL && goodsItemsMap[fileItem.fileID] !== undefined) { const index = goodsItemsMap[fileItem.fileID]; goods[index].convertedImageUrl = fileItem.tempFileURL; } }); } } catch (fileErr) { console.error('获取临时文件URL失败:', fileErr); } } // 构建最终的商品详情列表 detailList = goods.map(item => { // 优先使用转换后的URL,然后是原始URL,最后是默认URL let finalImgUrl = item.convertedImageUrl || item.image_url || item.image || ''; // 如果URL仍然不是http/https开头,使用默认URL if (!finalImgUrl || !finalImgUrl.startsWith('http')) { finalImgUrl = defaultImgUrl; } return { goods_name: item.name || '商品', goods_img_url: finalImgUrl }; }); } // 如果没有有效的商品信息,使用默认 if (detailList.length === 0) { detailList = [{ goods_name: item.name || '商品', goods_img_url: finalImgUrl }]; } // 构建请求参数 const waybillId = event.waybillId; const deliveryId = event.deliveryId; const receiverPhone = event.receiverPhone || ''; const transId = event.transId || ''; console.log('构建请求参数:', { waybillId, deliveryId, receiverPhone, transId, detailList: detailList }); // 构建请求体 const requestData = { waybill_id: waybillId, delivery_id: deliveryId, openid: openid, version: 1, goods_info: detailList, receiver_phone: receiverPhone || '', trans_id: transId || '' }; console.log('完整请求数据:', JSON.stringify(requestData)); // 调用微信物流API const result = await rp({ method: 'POST', url: `https://api.weixin.qq.com/cgi-bin/express/business/logistics/getpath?access_token=${accessToken}`, body: requestData, json: true }); console.log('物流API返回结果:', result); // 处理API响应 if (result.errcode === 0) { return { success: true, waybillToken: result.waybill_token }; } else { console.error('物流API返回错误:', result); return { success: false, error: result.errmsg || '获取物流路径失败', errorCode: result.errcode }; } } catch (error) { console.error('云函数执行异常:', error); return { success: false, error: error.message || '云函数执行异常' }; }};
05-20