You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
840 B
28 lines
840 B
module.exports = {
|
|
/**
|
|
* 密码加密测试
|
|
* @url user/sys/encryptPwd 前端调用的url参数地址
|
|
* @description 密码加密测试
|
|
* @param {Object} data 请求参数
|
|
* @param {String} uniIdToken 用户token
|
|
* @param {Object} util 公共工具包
|
|
* res 返回参数说明
|
|
* @param {Number} code 错误码,0表示成功
|
|
* @param {String} msg 详细信息
|
|
* @param {String} password 加密后的字符串
|
|
*/
|
|
main: async (event) => {
|
|
let { util } = event;
|
|
let { uniID } = util;
|
|
let res = {};
|
|
// 业务逻辑开始-----------------------------------------------------------
|
|
const password = await uniID.encryptPwd('123456');
|
|
res = {
|
|
code: 0,
|
|
msg: '密码加密完成',
|
|
password
|
|
}
|
|
// 业务逻辑结束-----------------------------------------------------------
|
|
return res;
|
|
}
|
|
}
|