Althars123 2 years ago
parent
commit
7da9cd5ac7

+ 2 - 2
nbjk-admin/src/main/java/com/miaxis/system/controller/system/SysLoginController.java

@@ -237,14 +237,14 @@ public class SysLoginController
 
 
 
 
     @PostMapping("/login/code/test")
     @PostMapping("/login/code/test")
-    @ApiOperation("微信用户授权码模式登录--测试")
+    @ApiOperation("通用微信用户授权码模式登录--测试")
     public Response<TokenDTO> testloginByAuthorizationCode(String authorizationCode ){
     public Response<TokenDTO> testloginByAuthorizationCode(String authorizationCode ){
         WxUserInfo wxUserInfo = new WxUserInfo();
         WxUserInfo wxUserInfo = new WxUserInfo();
        // wxUserInfo.setOpenid("ovKTX5-FKLF6_sgTtCIXpG_lz3PY");
        // wxUserInfo.setOpenid("ovKTX5-FKLF6_sgTtCIXpG_lz3PY");
 
 
         ServletUtils.getRequest().setAttribute("headImage","https://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83erGMFzKaOmz6cIaA0J1nicWSlBLdLKY46N5CNCoASiajT7Z3RIfPngPhJsjmqsSjGCFibPU4vCtfz3aw/132");
         ServletUtils.getRequest().setAttribute("headImage","https://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83erGMFzKaOmz6cIaA0J1nicWSlBLdLKY46N5CNCoASiajT7Z3RIfPngPhJsjmqsSjGCFibPU4vCtfz3aw/132");
         ServletUtils.getRequest().setAttribute("nickName","Althars");
         ServletUtils.getRequest().setAttribute("nickName","Althars");
-        ServletUtils.getRequest().setAttribute("third","weixin");
+        //ServletUtils.getRequest().setAttribute("third","weixin");
         //ServletUtils.getRequest().setAttribute("openid",wxUserInfo.getOpenid());
         //ServletUtils.getRequest().setAttribute("openid",wxUserInfo.getOpenid());
         String token = loginService.login("oqEKX6GxPyBPfRbM-Bk01CGwA0oM",null, StudentLoginTypeEnum.AUTHORIZATION_CODE_LOGIN.getCode());
         String token = loginService.login("oqEKX6GxPyBPfRbM-Bk01CGwA0oM",null, StudentLoginTypeEnum.AUTHORIZATION_CODE_LOGIN.getCode());
         TokenDTO tokenDTO = new TokenDTO();
         TokenDTO tokenDTO = new TokenDTO();

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

@@ -108,7 +108,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 	</select>
 	</select>
 	<insert id="saveUserInfo" parameterType="com.miaxis.common.core.domain.entity.UserInfo" >
 	<insert id="saveUserInfo" parameterType="com.miaxis.common.core.domain.entity.UserInfo" >
 		insert into user_info (head_image,nick_name,xcx_openid,app_openid,union_id,third_platform,gzh_openid)
 		insert into user_info (head_image,nick_name,xcx_openid,app_openid,union_id,third_platform,gzh_openid)
-		values (#{headImage},#{nickName},#{xcxOpenid},#{appOpenid},#{unionId},#{thirdPlatform},#{gzhOpenid})
+		values (#{headImage},#{nickName},#{xcxOpenid},#{appOpenid},#{unionId},#{gzhOpenid})
 	</insert>
 	</insert>
 
 
 	<select id="getAgentList" resultType="com.miaxis.common.core.domain.vo.AgentVO">
 	<select id="getAgentList" resultType="com.miaxis.common.core.domain.vo.AgentVO">
@@ -123,7 +123,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
 
 	<insert id="updateStudent" parameterType="com.miaxis.common.core.domain.entity.UserInfo" >
 	<insert id="updateStudent" parameterType="com.miaxis.common.core.domain.entity.UserInfo" >
 		update user_info set head_image = #{headImage},nick_name = #{nickName},xcx_openid = #{xcxOpenid}
 		update user_info set head_image = #{headImage},nick_name = #{nickName},xcx_openid = #{xcxOpenid}
-		,app_openid = #{appOpenid},union_id = #{unionId},third_platform = #{thirdPlatform} where id = #{id}
+		,app_openid = #{appOpenid},union_id = #{unionId} where id = #{id}
 	</insert>
 	</insert>
 	<select id="selectUserById" parameterType="Long" resultMap="SysUserResult">
 	<select id="selectUserById" parameterType="Long" resultMap="SysUserResult">
 		<include refid="selectUserVo"/>
 		<include refid="selectUserVo"/>