记得上下班打卡 | git大法好,push需谨慎

Commit d65d31dd authored by 张国柄's avatar 张国柄

~api:设置安全密码校验逻辑调整;

parent fc792346
......@@ -31,9 +31,10 @@ public class GoblinUserSafeConfigServiceImpl implements IGoblinUserSafeConfigSer
userSafeConfigDto.setPasswd(DigestUtils.md5DigestAsHex(passwd.concat(passwdSalt).getBytes(StandardCharsets.UTF_8)));
if (goblinRedisUtils.setUserSafeConfigDto(uid, userSafeConfigDto)) {
LinkedList<String> toMqSqls = CollectionUtil.linkedListString();
toMqSqls.add(SqlMapping.get("goblin_user_safe_config.add_passwd"));
toMqSqls.add(SqlMapping.get("goblin_user_safe_config.set_passwd"));
LinkedList<Object[]> initUserSafeConfigObjs = CollectionUtil.linkedListObjectArr();
initUserSafeConfigObjs.add(new Object[]{uid, userSafeConfigDto.getPasswd(), LocalDateTime.now()});
LocalDateTime nowDateTime = LocalDateTime.now();
initUserSafeConfigObjs.add(new Object[]{uid, userSafeConfigDto.getPasswd(), nowDateTime, nowDateTime, uid, userSafeConfigDto.getPasswd(), nowDateTime});
queueUtils.sendMsgByRedis(MQConst.GoblinQueue.SQL_GOODS.getKey(), SqlMapping.gets(toMqSqls, initUserSafeConfigObjs));
return true;
}
......
......@@ -159,7 +159,7 @@ goblin_mix_details_insert=INSERT INTO goblin_mix_details (`mix_id`,`position`,`s
goblin_mix_status_update=UPDATE goblin_mix SET status = ? , updated_at = ? WHERE mix_id = ?
goblin_mix_update=UPDATE goblin_mix SET show_position = ? , `limit`=?,white_type=?,white_url=? , updated_at = ?,shelves_time = ?,reserve = ? WHERE mix_id = ?
#---- \u7528\u6237\u5B89\u5168\u8BBE\u7F6E
goblin_user_safe_config.add_passwd=INSERT INTO goblin_user_safe_config (uid,passwd,created_at)VALUES(?,?,?)
goblin_user_safe_config.set_passwd=INSERT INTO goblin_user_safe_config (uid,passwd,created_at,updated_at)VALUES(?,?,?,?) ON DUPLICATE KEY UPDATE uid=?,passwd=?,updated_at=?;
#---- \u85CF\u54C1\u8BA2\u5355\u5173\u8054\u85CF\u54C1ID
goblin_nft_order.update_artwork=UPDATE goblin_nft_order SET artwork_id=? WHERE order_id=?
#----
......
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