bindEmail.js 387 B

1234567
  1. const _ = require('lodash');
  2. const { BusinessError, ErrorCode } = require('naf-core').Error;
  3. module.exports = params => {
  4. const code = _.get(params, 'code');
  5. if (!code) throw new BusinessError(ErrorCode.DATA_INVALID, '缺少模板需要的参数');
  6. return `【邮箱绑定】验证码为:${code},用于平台用户信息验证,若非本人操作,请忽略此信息。`;
  7. };