mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
更新cookie管理添加cookie逻辑
This commit is contained in:
+3
-3
@@ -16,10 +16,10 @@ export default (app: Router) => {
|
||||
try {
|
||||
if (req) {
|
||||
const cookieService = Container.get(CookieService);
|
||||
const { shici } = await cookieService.getYiYan();
|
||||
return res.status(200).json({ code: 200, data: shici });
|
||||
const { qrurl } = await cookieService.getQrUrl();
|
||||
return res.send({ code: 200, qrcode: qrurl });
|
||||
} else {
|
||||
return res.status(200).json({ err: 1, msg: 'loginFaild' });
|
||||
return res.send({ code: 1, msg: 'loginFaild' });
|
||||
}
|
||||
} catch (e) {
|
||||
logger.error('🔥 error: %o', e);
|
||||
|
||||
Reference in New Issue
Block a user