小商店服务商调用获取类目详情一直报(200002服务市场购买的服务过期) 错误?
发布于 7 年前 作者 xiongjuan 9669 次浏览 来自 问答
let result = await this.ctx.curl(`https://api.weixin.qq.com/product/category/get?access_token=${accessToken}&service_id=${reqData.serviceId}&&specification_id=${reqData.specificationId}`, {
      // 自动解析 JSON response
      dataType'json',
      // 必须指定 method
      method'POST',
      // 通过 contentType 告诉 HttpClient 以 JSON 格式发送
      contentType'json',
      data: {
        f_cat_id: reqData.fCatId
      },
      // 3 秒超时
      timeout3000,
    });
回到顶部