@扫地僧 主要是想利用eova的现有的组件, 单独写action是不是相当于完全自定义了。 eova专业版文档里面,关于用户模块这里就是上面我说的这样处理, // 新增 Eova User User user = RecordUtil.peelModel(User.class, e, "v_login_id->login_id", "v_login_pwd->login_pwd", "v_rid->rid"); user.set("login_pwd", EncryptUtil.getSM32(user.getStr("login_pwd"))); user.save();
int uid = user.getInt("id"); int rid = user.getInt("rid"); LogKit.info("新增用户成功:" + uid);