收口运行上下文命名
This commit is contained in:
@@ -222,7 +222,7 @@ export async function updateTask(taskId: number | string, patch: TaskUpdatePatch
|
||||
|
||||
if (containsRuntimeContextPatch(patch)) {
|
||||
await upsertTaskRuntimeContextWithClient(client, Number(taskId), {
|
||||
browserSessionId: patch.browser_session_id,
|
||||
runtimeSessionId: patch.browser_session_id,
|
||||
loginType: patch.login_type,
|
||||
nickname: patch.nickname,
|
||||
roleId: patch.role_id,
|
||||
@@ -346,7 +346,7 @@ async function upsertTaskRuntimeContextWithClient(
|
||||
const current = currentResult.rows[0] || null
|
||||
|
||||
const next = {
|
||||
browser_session_id: patch.browserSessionId ?? current?.browser_session_id ?? '',
|
||||
browser_session_id: patch.runtimeSessionId ?? current?.browser_session_id ?? '',
|
||||
login_type: patch.loginType ?? current?.login_type ?? '',
|
||||
nickname: patch.nickname ?? current?.nickname ?? '',
|
||||
role_id: patch.roleId ?? current?.role_id ?? '',
|
||||
|
||||
@@ -59,7 +59,7 @@ export function mapAdminTaskSummary(
|
||||
systemBindingStatus: binding.systemBindingStatus,
|
||||
userBindingStatus: binding.userBindingStatus,
|
||||
loginType: task.login_type,
|
||||
browserSessionId: task.browser_session_id,
|
||||
runtimeSessionId: task.browser_session_id,
|
||||
claimedAt: task.claimed_at,
|
||||
roleConfirmedAt: task.role_confirmed_at,
|
||||
redeemedAt: task.redeemed_at,
|
||||
@@ -125,7 +125,7 @@ export function mapAdminTaskListItem(
|
||||
loginType: task.login_type,
|
||||
roleName: task.role_name,
|
||||
roleId: task.role_id,
|
||||
browserSessionId: task.browser_session_id,
|
||||
runtimeSessionId: task.browser_session_id,
|
||||
claimedAt: task.claimed_at,
|
||||
roleConfirmedAt: task.role_confirmed_at,
|
||||
redeemedAt: task.redeemed_at,
|
||||
|
||||
@@ -96,7 +96,7 @@ export function buildClaimDetailPayload({ claimToken, task, order, orderItem })
|
||||
redeemedAt: task.redeemed_at,
|
||||
loginType: task.login_type,
|
||||
lastError: task.last_error,
|
||||
browserSessionId: task.browser_session_id,
|
||||
runtimeSessionId: task.browser_session_id,
|
||||
},
|
||||
order: {
|
||||
orderId: order.id,
|
||||
|
||||
@@ -54,7 +54,7 @@ export type AdminTaskListItem = {
|
||||
loginType: string
|
||||
roleName: string
|
||||
roleId: string
|
||||
browserSessionId: string
|
||||
runtimeSessionId: string
|
||||
claimedAt: string | null
|
||||
roleConfirmedAt: string | null
|
||||
redeemedAt: string | null
|
||||
|
||||
@@ -58,7 +58,7 @@ export type TaskListQueryInput = {
|
||||
}
|
||||
|
||||
export type TaskRuntimeContextPatch = {
|
||||
browserSessionId?: string
|
||||
runtimeSessionId?: string
|
||||
loginType?: string
|
||||
nickname?: string
|
||||
roleId?: string
|
||||
|
||||
@@ -11,14 +11,6 @@
|
||||
- Cloudtentacles 履约配置与调试
|
||||
- 内部通知和定时任务配置
|
||||
|
||||
## 已移除内容
|
||||
|
||||
- 腾讯浏览器调试入口 `/tx/browser`
|
||||
- 腾讯领取页 fallback
|
||||
- 人工兑换页面
|
||||
- 旧履约规则配置页
|
||||
- Agiso 店铺消息配置前端入口
|
||||
|
||||
## 本地开发
|
||||
|
||||
```bash
|
||||
|
||||
Vendored
+2
@@ -25,6 +25,7 @@ declare module 'vue' {
|
||||
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
||||
ElDescriptions: typeof import('element-plus/es')['ElDescriptions']
|
||||
ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem']
|
||||
ElDialog: typeof import('element-plus/es')['ElDialog']
|
||||
ElDropdown: typeof import('element-plus/es')['ElDropdown']
|
||||
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
|
||||
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
|
||||
@@ -32,6 +33,7 @@ declare module 'vue' {
|
||||
ElForm: typeof import('element-plus/es')['ElForm']
|
||||
ElFormItem: typeof import('element-plus/es')['ElFormItem']
|
||||
ElIcon: typeof import('element-plus/es')['ElIcon']
|
||||
ElImage: typeof import('element-plus/es')['ElImage']
|
||||
ElInput: typeof import('element-plus/es')['ElInput']
|
||||
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
|
||||
ElMenu: typeof import('element-plus/es')['ElMenu']
|
||||
|
||||
@@ -22,7 +22,7 @@ export interface AdminTaskListItem {
|
||||
loginType: string
|
||||
roleName: string
|
||||
roleId: string
|
||||
browserSessionId: string
|
||||
runtimeSessionId: string
|
||||
claimedAt: string | null
|
||||
roleConfirmedAt: string | null
|
||||
redeemedAt: string | null
|
||||
|
||||
@@ -33,7 +33,7 @@ export interface ClaimTaskInfo {
|
||||
redeemedAt: string | null
|
||||
loginType: string
|
||||
lastError: string
|
||||
browserSessionId: string
|
||||
runtimeSessionId: string
|
||||
}
|
||||
|
||||
export interface ClaimOrderInfo {
|
||||
|
||||
@@ -65,8 +65,8 @@ defineProps<Props>()
|
||||
<span v-else-if="claimLinkInvalid">已失效</span>
|
||||
<span v-else>-</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="浏览器会话">
|
||||
{{ detail.task.browserSessionId || '-' }}
|
||||
<el-descriptions-item label="运行上下文">
|
||||
{{ detail.task.runtimeSessionId || '-' }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="用户打开链接">
|
||||
{{ formatAdminDateTime(detail.task.claimedAt) }}
|
||||
|
||||
Reference in New Issue
Block a user