瀏覽代碼

登录逻辑和微信支付下单

Althars123 3 年之前
父節點
當前提交
aefb60b813

+ 2 - 1
sdjk-framework/src/main/java/com/miaxis/framework/web/service/SysLoginService.java

@@ -100,7 +100,8 @@ public class SysLoginService
         ServletUtils.getRequest().setAttribute("loginType",loginType);
 
         // 用户验证
-        if (StudentLoginTypeEnum.AUTHORIZATION_CODE_LOGIN.getCode().equals(loginType)||StudentLoginTypeEnum.IOS_CODE_LOGIN.getCode().equals(loginType)){
+        if (StudentLoginTypeEnum.AUTHORIZATION_CODE_LOGIN.getCode().equals(loginType)||StudentLoginTypeEnum.IOS_CODE_LOGIN.getCode().equals(loginType)
+        ||StudentLoginTypeEnum.AUTHORIZATION_CODE_DY_LOGIN.getCode().equals(loginType)||StudentLoginTypeEnum.AUTHORIZATION_CODE_TT_LOGIN.getCode().equals(loginType)){
             return authenticate(principal,new OpenIdAuthenticationToken(principal));
         }
         else{

+ 2 - 1
sdjk-system/src/main/resources/mapper/system/SysUserMapper.xml

@@ -107,7 +107,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 		where name = #{name}
 	</select>
 	<insert id="saveUserInfo" parameterType="com.miaxis.common.core.domain.entity.UserInfo" >
-		insert into user_info (head_image,nick_name,openid) values (#{headImage},#{nickName},#{openid})
+		insert into user_info (head_image,nick_name,xcx_openid,app_openid,union_id,third_platform)
+		values (#{headImage},#{nickName},#{xcxOpenid},#{appOpenid},#{unionId},#{thirdPlatform})
 	</insert>
 
 	<select id="getAgentList" resultType="com.miaxis.common.core.domain.vo.AgentVO">