feat: 积分商城-对账优化3
This commit is contained in:
@@ -512,5 +512,8 @@ CREATE TABLE IF NOT EXISTS `points_mall_schedule_user_points_record` (
|
||||
) 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';
|
||||
ADD COLUMN virtual_id VARCHAR(64) NULL COMMENT '虚拟用户ID,积分商城向供应商传递的用户标识',
|
||||
ADD COLUMN virtual_org_id VARCHAR(255) NULL COMMENT '虚拟组织ID';
|
||||
|
||||
UPDATE sys_user SET virtual_id = MD5(CONCAT(id, '_', loginName, '_', salt))
|
||||
where id is not null and loginName is not null and salt is not null;
|
||||
@@ -151,13 +151,13 @@ layout("/layouts/platform_h5.html"){
|
||||
this.$toast("暂无跳转地址")
|
||||
return
|
||||
}
|
||||
const vuserId = this.$store && this.$store.state.user ? this.$store.state.user.vuserId : ""
|
||||
if (!vuserId) {
|
||||
const virtualId = this.$store && this.$store.state.user ? this.$store.state.user.virtualId : ""
|
||||
if (!virtualId) {
|
||||
this.$toast("获取用户信息失败,请重新登录后再试")
|
||||
return
|
||||
}
|
||||
window.location.href = this.withSupplierQuery(item.supplierUrl, {
|
||||
userId: vuserId
|
||||
userId: virtualId
|
||||
})
|
||||
},
|
||||
withSupplierQuery(url, params) {
|
||||
|
||||
Reference in New Issue
Block a user