Commit 250d7146 authored by muhong's avatar muhong

Merge branch 'master' into applet-dev

parents a8c9383c b28a8c77
...@@ -132,6 +132,14 @@ ...@@ -132,6 +132,14 @@
values (#{favoritesId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{itemId,jdbcType=BIGINT}, values (#{favoritesId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{itemId,jdbcType=BIGINT},
#{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}) #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
</insert> </insert>
<insert id="batchInsert" parameterType="com.wwdz.ch.db.domain.FavoritesItemsRelation">
insert into favorites_items_relation (favorites_id, user_id, item_id,
add_time, update_time)
values
<foreach collection="list" item="item" separator=",">
(#{item.favoritesId,jdbcType=BIGINT}, #{item.userId,jdbcType=BIGINT}, #{item.itemId,jdbcType=BIGINT}, #{item.addTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP})
</foreach>
</insert>
<insert id="insertSelective" parameterType="com.wwdz.ch.db.domain.FavoritesItemsRelation"> <insert id="insertSelective" parameterType="com.wwdz.ch.db.domain.FavoritesItemsRelation">
insert into favorites_items_relation insert into favorites_items_relation
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
......
...@@ -30,7 +30,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer { ...@@ -30,7 +30,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
registry.addInterceptor(loginInterceptor()) registry.addInterceptor(loginInterceptor())
.addPathPatterns("/**") .addPathPatterns("/**")
.excludePathPatterns("/*.html", "/**/*.html", "/**/*.css", "/**/*.js" .excludePathPatterns("/*.html", "/**/*.html", "/**/*.css", "/**/*.js"
, "/wx/user/loginByWx", "/wx/user/loginByMobile", "/wx/user/loginRegCaptcha", "/wx/user/updateRegCaptcha", "/wx/user/login"); , "/wx/user/loginByWx", "/wx/user/loginByMobile", "/wx/user/loginRegCaptcha", "/wx/user/updateRegCaptcha", "/wx/user/login", "/wx/user/fillCode");
// , "/wx/item/page", "/wx/item/info", "/wx/item/findNames" // , "/wx/item/page", "/wx/item/info", "/wx/item/findNames"
// , "/wx/favorites/info", "/wx/favorites/itemList" // , "/wx/favorites/info", "/wx/favorites/itemList"
// , "/wx/keyword/recommend", "/wx/queryPrice/**"); // , "/wx/keyword/recommend", "/wx/queryPrice/**");
......
...@@ -68,9 +68,6 @@ public class LoginInterceptor implements HandlerInterceptor { ...@@ -68,9 +68,6 @@ public class LoginInterceptor implements HandlerInterceptor {
loginType = 2; loginType = 2;
} else { } else {
if (userTokenManager.checkLogin(token)) { if (userTokenManager.checkLogin(token)) {
if (StringUtils.equals(url, "/wx/user/fillCode")) {
return true;
}
User user = userDao.queryById(userTokenManager.getUserId(token)); User user = userDao.queryById(userTokenManager.getUserId(token));
if (!(Boolean) inviteRecordService.isExisted(user.getMobile()).getData()) { if (!(Boolean) inviteRecordService.isExisted(user.getMobile()).getData()) {
loginType = 3; loginType = 3;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment