提交 8e0e211f 编写于 作者: Y yinpengxiao

提交增加redis清除存储

上级 7f80c836
/*
* @Author: 尹鹏孝
* @Date: 2021-08-30 10:58:19
* @LastEditTime: 2021-09-03 16:20:08
* @LastEditTime: 2021-09-03 16:36:32
* @LastEditors: Please set LastEditors
* @Description: 用户接口
* @FilePath: \koa2-test-api\src\routes\api\users.js
......@@ -87,7 +87,7 @@ router.post('/setting', new auth().m, async (ctx, next) => {
user_name,
password
} = ctx.request.body;
set(user_name, '');
let newUser = await findUser({
user_name,
password: enCrypto(password)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册