|
@@ -47,6 +47,8 @@ import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
import com.fs.his.domain.FsUserWx;
|
|
import com.fs.his.domain.FsUserWx;
|
|
|
|
|
|
|
|
+import static com.fs.his.utils.PhoneUtil.encryptPhone;
|
|
|
|
+
|
|
@Api("微信小程序相关接口")
|
|
@Api("微信小程序相关接口")
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping(value = "/app/wx/miniapp")
|
|
@RequestMapping(value = "/app/wx/miniapp")
|
|
@@ -143,7 +145,7 @@ public class WxCompanyUserController extends AppBaseController {
|
|
private FsUser getUserByAuthType(LoginMaWxParam param, WxMaService wxService, WxMaJscode2SessionResult session, WxMaPhoneNumberInfo phoneNoInfo) throws WxErrorException {
|
|
private FsUser getUserByAuthType(LoginMaWxParam param, WxMaService wxService, WxMaJscode2SessionResult session, WxMaPhoneNumberInfo phoneNoInfo) throws WxErrorException {
|
|
FsUser user = null;
|
|
FsUser user = null;
|
|
if (param.getAuthType() == 1) {
|
|
if (param.getAuthType() == 1) {
|
|
- user = userService.selectFsUserByPhone(phoneNoInfo.getPhoneNumber());
|
|
|
|
|
|
+ user = userService.selectFsUserByPhone(encryptPhone(phoneNoInfo.getPhoneNumber()));
|
|
} else {
|
|
} else {
|
|
// unionid判定唯一
|
|
// unionid判定唯一
|
|
if (StringUtils.isNotEmpty(session.getUnionid())) {
|
|
if (StringUtils.isNotEmpty(session.getUnionid())) {
|