华为鸿蒙应用内支付订单状态查询接口返回1001880006,JWT signature time is later than the current time!

游戏技术分享
发布于 2025-6-9 15:19
浏览
0收藏

关键词

鸿蒙应用内支付

问题描述

集成华为鸿蒙应用内支付服务,调用​​订单状态查询接口​​ {rootUrl}/order/harmony/v1/application/order/status/query,返回错误信息

{"responseCode":"1001880006","responseMessage":" JWT signature time is later than the current time!"}。

问题分析

在开发者联盟上查到错误码1001880006对应的描述和解决办法,如下

华为鸿蒙应用内支付订单状态查询接口返回1001880006,JWT signature time is later than the current time!-鸿蒙开发者社区cke_132.png

我找到华为技术支持(可以提交工单:​​https://developer.huawei.com/consumer/cn/support/feedback​​),对方告诉我,从错误信息“JWT signature time is later than the current time!”看,是创建​​JWT格式的token​​时传的JWT有效期有问题。JWT的有效期是指exp-iat,其中exp和iat两个参数的时间戳单位是s。

exp和iat两个参数我传的时间戳单位是ms,导致JWT有效期晚于当前时间,改成以s为单位的时间戳,问题解决。


更多问题可关注:

鸿蒙游戏官方网站:​​已有游戏移植-鸿蒙游戏-华为开发者联盟​

公开课:​​华为开发者学堂​

分类
收藏
回复
举报
回复
    相关推荐