JK 4 years ago
parent
commit
942dadaebe

+ 2 - 1
YijiaRestful/src/main/java/com/platform/yijia/controller/AppUserInfoController.java

@@ -521,7 +521,8 @@ public class AppUserInfoController {
                         //判断当前登录是否存在手机号
                         if(StringUtils.isNotBlank(request.getMobilePhone())){
                             appUserInfo.setMinaOpenid(openId);
-                            wxInfo.setMobilePhone(request.getMobilePhone());
+                            //wxInfo.setMobilePhone(request.getMobilePhone());
+                            wxInfo.setUnionId(request.getUnionId());
                             AppUserInfo wxInfoResult = appUserInfoService.getAppUserInfo(wxInfo);
                             if(wxInfoResult !=null){
                                 //如果不为空,则说明存在小程序用户信息;

+ 3 - 3
YijiaRestful/src/main/resources/mapper/AppUserInfoMapper.xml

@@ -516,9 +516,9 @@
       <if test="unionId !=null and unionId !=''">
         AND union_id = #{unionId}
       </if>
-      <if test="mobilePhone !=null and mobilePhone !=''">
-        AND mobile_phone = #{mobilePhone}
-      </if>
+<!--      <if test="mobilePhone !=null and mobilePhone !=''">-->
+<!--        AND mobile_phone = #{mobilePhone}-->
+<!--      </if>-->
     </where>
   </update>