feat: 积分商城-对账优化2

This commit is contained in:
2026-09-01 16:25:59 +08:00
parent d2cb60f5cf
commit 43d0d973c9
6 changed files with 33 additions and 10 deletions
+4
View File
@@ -510,3 +510,7 @@ CREATE TABLE IF NOT EXISTS `points_mall_schedule_user_points_record` (
KEY `idx_points_mall_schedule_user_points_user` (`userId`),
KEY `idx_points_mall_schedule_user_points_status` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='积分商城定时发放积分记录';
ALTER TABLE sys_user
ADD COLUMN vuser_id VARCHAR(64) NULL COMMENT '虚拟用户ID,积分商城向供应商传递的用户标识',
ADD COLUMN vorg_id VARCHAR(255) NULL COMMENT '虚拟组织ID';
@@ -151,13 +151,13 @@ layout("/layouts/platform_h5.html"){
this.$toast("暂无跳转地址")
return
}
const userId = this.$store && this.$store.state.user ? this.$store.state.user.id : ""
if (!userId) {
const vuserId = this.$store && this.$store.state.user ? this.$store.state.user.vuserId : ""
if (!vuserId) {
this.$toast("获取用户信息失败,请重新登录后再试")
return
}
window.location.href = this.withSupplierQuery(item.supplierUrl, {
userId: userId
userId: vuserId
})
},
withSupplierQuery(url, params) {