mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-08 00:40:26 +08:00
feat: 系统升级支持数据库自动迁移,避免手动执行升级脚本
This commit is contained in:
@@ -95,7 +95,7 @@ const encryptField = async (param: any, field: string) => {
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
console.log(param[field]);
|
||||
}
|
||||
// 使用rsa公钥加密sql
|
||||
// 使用aes加密sql
|
||||
param['_encrypted'] = 1;
|
||||
param[field] = AesEncrypt(param[field]);
|
||||
// console.log('解密结果', DesDecrypt(param[field]));
|
||||
|
||||
Reference in New Issue
Block a user