Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangYiQiu committed Dec 7, 2024
1 parent 444f4bd commit f8e8ddc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Wiki/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ URL: `/CreateOrder`
"OutOrderId": "AJIHK72N34BR2CWG", //商户订单号
"QrCodeBase64": "data:image/png;base64,xxxxxxxxx", //base64格式的图片
"QrCodeLink": "http://127.0.0.1:5000/GetQrCode?Id=644bc479-df0c-3f1c-00fe-9cb3012b148b", //二维码图片链接,如需修改图片尺寸,可拼接参数 &Size=xxx, 这里的xxx为数字,表示图片宽高,默认为300
"ToAddress": "TLUF41C386CMU1Wc8pTSCE4QaiZ2xkhTCb" //付款地址
"ToAddress": "TKGTx4pCKiKQbk8evXHTborfZn754TGViP" //付款地址
}
}
```
Expand Down Expand Up @@ -131,19 +131,19 @@ URL: `创建订单`接口传递的`NotifyUrl`字段内的URL
"OutOrderId": "E6COE6FGZMO5AXSK",
"PayTime": "2022-09-15 16:08:39",
"Status": 1,
"ToAddress": "TLUF41C386CMU1Wc8pTSCE4QaiZ2xkhTCb"
"ToAddress": "TKGTx4pCKiKQbk8evXHTborfZn754TGViP"
}
```
### ②按照ASCII排序后拼接
`ActualAmount=15&Amount=34.91&BaseCurrency=CNY&BlockChainName=TRON&BlockTransactionId=375859c36dc5f5d227b10912b5ec70d36dd34446028064956cb60cdbb74432f5&Currency=TRX&CurrencyName=TRX&FromAddress=TYYjzt6AWhe9hAg9DrhiYXEWKDksyohgQa&Id=63234df7-55bf-93fc-0010-67be493c0c27&OutOrderId=E6COE6FGZMO5AXSK&PayTime=2022-09-15 16:08:39&Status=1&ToAddress=TLUF41C386CMU1Wc8pTSCE4QaiZ2xkhTCb`
`ActualAmount=15&Amount=34.91&BaseCurrency=CNY&BlockChainName=TRON&BlockTransactionId=375859c36dc5f5d227b10912b5ec70d36dd34446028064956cb60cdbb74432f5&Currency=TRX&CurrencyName=TRX&FromAddress=TYYjzt6AWhe9hAg9DrhiYXEWKDksyohgQa&Id=63234df7-55bf-93fc-0010-67be493c0c27&OutOrderId=E6COE6FGZMO5AXSK&PayTime=2022-09-15 16:08:39&Status=1&ToAddress=TKGTx4pCKiKQbk8evXHTborfZn754TGViP`

假设异步通知密钥为:`666`

拼接密钥后
`ActualAmount=15&Amount=34.91&BaseCurrency=CNY&BlockChainName=TRON&BlockTransactionId=375859c36dc5f5d227b10912b5ec70d36dd34446028064956cb60cdbb74432f5&Currency=TRX&CurrencyName=TRX&FromAddress=TYYjzt6AWhe9hAg9DrhiYXEWKDksyohgQa&Id=63234df7-55bf-93fc-0010-67be493c0c27&OutOrderId=E6COE6FGZMO5AXSK&PayTime=2022-09-15 16:08:39&Status=1&ToAddress=TLUF41C386CMU1Wc8pTSCE4QaiZ2xkhTCb666`
`ActualAmount=15&Amount=34.91&BaseCurrency=CNY&BlockChainName=TRON&BlockTransactionId=375859c36dc5f5d227b10912b5ec70d36dd34446028064956cb60cdbb74432f5&Currency=TRX&CurrencyName=TRX&FromAddress=TYYjzt6AWhe9hAg9DrhiYXEWKDksyohgQa&Id=63234df7-55bf-93fc-0010-67be493c0c27&OutOrderId=E6COE6FGZMO5AXSK&PayTime=2022-09-15 16:08:39&Status=1&ToAddress=TKGTx4pCKiKQbk8evXHTborfZn754TGViP666`

### ③计算MD5
`a8f9d179a8d2798c8b5bb90c31db2c9e`
`e5eaa888cd9e80b5c09a0698981757c8`

对比POST中的`Signature`是否与此值一致

Expand Down
4 changes: 2 additions & 2 deletions src/TokenPay/appsettings.Example.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"ExpireTime": 1800, //单位秒
"UseDynamicAddress": false, //是否使用动态地址,设为false时,与EPUSDT表现类似;设为true时,为每个下单用户分配单独的收款地址
"Address": { // UseDynamicAddress设为false时在此配置TRON收款地址,EVM可以替代所有ETH系列的收款地址,支持单独配置某条链的收款地址
"TRON": [ "TLUF41C386CMU1Wc8pTSCE4QaiZ2xkhTCb" ],
"TRON": [ "TKGTx4pCKiKQbk8evXHTborfZn754TGViP" ],
"EVM": [ "0x9966aA2f1dDD7c1174553e687791a96c1Bc20680" ]
},
"OnlyConfirmed": false, //默认仅查询已确认的数据,如果想要回调更快,可以设置为false
Expand All @@ -39,7 +39,7 @@
"MinUSDT": 0.1, //只归集USDT余额大于此金额的地址
"NeedEnergy": 65000, //归集USDT所需能量,此配置项通常不需要修改,发生变化时会在GitHub更新
"EnergyPrice": 210, //波场当前能量单价,此配置项通常不需要修改,发生变化时会在GitHub更新
"Address": "TLUF41C386CMU1Wc8pTSCE4QaiZ2xkhTCb" //归集收款地址,配置你自己的收款地址
"Address": "TKGTx4pCKiKQbk8evXHTborfZn754TGViP" //归集收款地址,配置你自己的收款地址
},
"Telegram": {
"AdminUserId": 12345678, // 你的TG账号ID,如不知道ID,可给 https://t.me/QueryCoinBot 发送 /tgid 获取ID
Expand Down

0 comments on commit f8e8ddc

Please sign in to comment.