fix: 默认关闭获取手机号

main
wx-jincw 3 weeks ago
parent ddf7b9fbc7
commit 7fa05c4d1b

@ -162,7 +162,7 @@ public class Constants {
public static final String CONFIG_KEY_FRONT_API_URL = "front_api_url"; //移动商城接口地址
public static final String CONFIG_KEY_SITE_LOGO = "mobile_top_logo"; //logo地址
public static final String CONFIG_KEY_MOBILE_LOGIN_LOGO = "mobile_login_logo"; // 移动端登录 logo
/** 小程序微信登录是否强制获取手机号1=开启(默认)0=关闭(走账号密码绑定微信) */
/** 小程序微信登录是否强制获取手机号1=开启0=关闭(默认,走账号密码绑定微信) */
public static final String CONFIG_KEY_ROUTINE_LOGIN_REQUIRE_PHONE = "routine_login_require_phone";
public static final String CONFIG_KEY_SITE_NAME = "site_name"; //网站名称
public static final String CONFIG_SITE_TENG_XUN_MAP_KEY = "tengxun_map_key"; //腾讯地图key

@ -116,7 +116,7 @@ public class WeChatController {
public CommonResult<Map<String, String>> getLogo(){
Map<String, String> map = new HashMap<>();
map.put("logoUrl", userCenterService.getLogo());
// 1=微信登录新用户强制获取手机号0=跳转账号密码绑定微信
// 1=微信登录新用户强制获取手机号0=跳转账号密码绑定微信(默认)
map.put("routineLoginRequirePhone", userCenterService.getRoutineLoginRequirePhone());
return CommonResult.success(map);
}

@ -491,12 +491,12 @@ public class UserCenterServiceImpl extends ServiceImpl<UserDao, User> implements
/**
*
* routine_login_require_phone1=0=
* routine_login_require_phone1=0=
*/
@Override
public String getRoutineLoginRequirePhone() {
String value = systemConfigService.getValueByKey(Constants.CONFIG_KEY_ROUTINE_LOGIN_REQUIRE_PHONE);
return StrUtil.isBlank(value) ? "1" : value;
return StrUtil.isBlank(value) ? "0" : value;
}
/**

Loading…
Cancel
Save