切换店铺统计 √
下单选择会员 √ 注册会员 √ 完善手机号 √ 会员流水信息同步 √
This commit is contained in:
@@ -61,15 +61,17 @@ public class SaTokenConfigure implements WebMvcConfigurer {
|
||||
|
||||
SaRouter.match("/user/**").notMatch("/user/login", "/user/test", "/user/geo/**", "/user/home/**", "/user/home/**", "/user/dict/**", "/user/openId")
|
||||
.notMatch("/pay/**")
|
||||
.notMatch("/notify/**")
|
||||
.notMatch("/order/notify/**")
|
||||
.notMatch("/user/product/**")
|
||||
.check(r -> MyStpLogic.CLIENT_LOGIC.checkLogin())
|
||||
.setHit(true)
|
||||
// .match("/**")
|
||||
.notMatch("/user/**")
|
||||
.notMatch("/pay/**")
|
||||
.notMatch("/notify/**")
|
||||
.notMatch("/admin/auth/**")
|
||||
.notMatch("/admin/shopMsgPush/subscribe/**")
|
||||
.notMatch("/order/notify/**")
|
||||
.notMatch("/account/admin/auth/**")
|
||||
.notMatch("/user/product/**")
|
||||
.notMatch("/account/admin/shopMsgPush/subscribe/**")
|
||||
.check(r -> MyStpLogic.ADMIN_LOGIC.checkLogin());
|
||||
|
||||
})).addPathPatterns("/**");
|
||||
|
||||
@@ -202,13 +202,27 @@ public class MyStpLogic {
|
||||
return shopId == null ? defaultVal : shopId;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取店铺会员查询主店id
|
||||
*
|
||||
* @return 主店id
|
||||
*/
|
||||
public Long getVipHeadShopId() {
|
||||
Long shopId = getShopId(0L);
|
||||
Long mainId = DbChain.table("tb_shop_config").select("main_id").where("id = ? and is_enable_vip_sync = ?", shopId, 1).objAs(Long.class);
|
||||
if (mainId != null) {
|
||||
return mainId;
|
||||
}
|
||||
return shopId;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取主店id
|
||||
* @return 主店id
|
||||
*/
|
||||
public Long getHeadShopId() {
|
||||
Long shopId = getShopId(0L);
|
||||
Long mainId = DbChain.table("tb_shop_config").select("main_id").where("id = ? and is_enable_vip_sync = ?", shopId, 1).objAs(Long.class);
|
||||
Long mainId = DbChain.table("tb_shop_config").select("main_id").where("id = ?", shopId).objAs(Long.class);
|
||||
if (mainId != null) {
|
||||
return mainId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user