Commit 93886200 by 姜雷

修改解密字符串补位方法

parent 66ff4279
......@@ -71,7 +71,11 @@ class Pay extends Component {
console.log('res: ', res);
const { payStr } = res;
const key = customerId.toString().padEnd(16, '0');
let key = customerId.toString();
while (key.length < 16) {
key = key + '0';
}
const payData = JSON.parse(
AES.decrypt(payStr, Utf8.parse(key), {
mode: ECBmode,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment