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