Commit cd885517 by 宋毅

tj

parent 8e8c48f2
...@@ -70,6 +70,7 @@ class utilsTlBankSve extends AppServiceBase { ...@@ -70,6 +70,7 @@ class utilsTlBankSve extends AppServiceBase {
* @returns {String} * @returns {String}
*/ */
async generateSign(pobj, dataObj, privateKey, algorith) { async generateSign(pobj, dataObj, privateKey, algorith) {
privateKey = "-----BEGIN RSA PRIVATE KEY-----" + privateKey + "-----END RSA PRIVATE KEY-----";
const stringToBeSign = Object.keys(dataObj).sort().reduce((acc, k) => { const stringToBeSign = Object.keys(dataObj).sort().reduce((acc, k) => {
if (k !== 'sign' && dataObj[k] !== undefined) { if (k !== 'sign' && dataObj[k] !== undefined) {
const v = `${dataObj[k]}`; const v = `${dataObj[k]}`;
......
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