完善半自动履约凭证与客户重新授权流程
统一虎牙和微博账号级 CK 保存与导出;CK 失效后回到客户重新登录,后台支持重发授权;客户授权页改为统一深色布局并收敛开发迁移配置。
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
exportAdminSemiAutoCredential,
|
||||
getAdminSemiAutoTask,
|
||||
listAdminSemiAutoTasks,
|
||||
requestAdminSemiAutoCustomerReauth,
|
||||
syncAdminSemiAutoTask,
|
||||
} from '../../services/semi-auto/semi-auto-task-service.js'
|
||||
import { bodyOf, sessionOf } from './request-helpers.js'
|
||||
@@ -91,6 +92,24 @@ router.post(
|
||||
}),
|
||||
)
|
||||
|
||||
router.post(
|
||||
'/semi-auto/tasks/:taskId/reauthorize',
|
||||
createJsonHandler(
|
||||
(req) => requestAdminSemiAutoCustomerReauth(req.params.taskId, sessionOf(req)),
|
||||
{
|
||||
successMessage: '已重新发起客户授权',
|
||||
errorMessage: '重新发起客户授权失败',
|
||||
scope: '[admin/semi-auto/tasks/:taskId/reauthorize]',
|
||||
audit: (req) => ({
|
||||
action: 'semi_auto_task_reauth_requested',
|
||||
targetType: 'semi_auto_task',
|
||||
targetId: String(req.params.taskId || ''),
|
||||
data: {},
|
||||
}),
|
||||
},
|
||||
),
|
||||
)
|
||||
|
||||
router.post(
|
||||
'/semi-auto/tasks/:taskId/browser-session',
|
||||
createJsonHandler(
|
||||
|
||||
Reference in New Issue
Block a user