本帖最后由 yoxi011 于 2020-5-11 22:08 编辑
var now = new Date();
var nowtime = now.getTime(); //当前时间戳 毫秒
var nowtimeStr = nowtime.toString();
var signStr = hex_md5("ada72850-2b2e-11e7-985b-008cfaeb3d74" + '995e00df72f14bbcb7833a9ca063adef' + nowtimeStr);
var sign = hex_md5('qyylbacbrypc' + nowtimeStr);
var params = {
from: '1',
key: '91da7d51a42542219852bb3df4399d03',
requestTime: nowtimeStr,
sign: sign,
zj_ggsjpt_app_key: 'ada72850-2b2e-11e7-985b-008cfaeb3d74',
zj_ggsjpt_sign: signStr,
zj_ggsjpt_time: nowtimeStr,
name: title0,
cardId:title1,
additional:''
明明已经加密为何还会提示sign错误?
.版本 2
.支持库 dp1
时间 = 时间_取现行时间戳 ()
加密1 = 取数据摘要 (到字节集 (“ada72850-2b2e-11e7-985b-008cfaeb3d74” + “995e00df72f14bbcb7833a9ca063adef” + 时间))
加密2 = 取数据摘要 (到字节集 (“qyylbacbrypc” + 时间))
链接:https://pan.baidu.com/s/1FidPAzf-_Mi3n9GBBt2woQ
提取码:8gb7 |