123
This commit is contained in:
@@ -111,7 +111,8 @@ public class SettingAppController {
|
|||||||
@Log(title = "获取用户协议", businessType = BusinessType.OTHER, isSaveDb = false)
|
@Log(title = "获取用户协议", businessType = BusinessType.OTHER, isSaveDb = false)
|
||||||
@SaIgnore
|
@SaIgnore
|
||||||
public R<AgreementDTO> userAgreement() {
|
public R<AgreementDTO> userAgreement() {
|
||||||
String userAgreement = agreementSettingService.getAgreementSetting().getUserAgreement();
|
// String userAgreement = agreementSettingService.getAgreementSetting().getUserAgreement();
|
||||||
|
String userAgreement = systemConfigManager.getSystemConfig(SystemConfigEnum.USER_AGREEMENT);
|
||||||
return R.ok(new AgreementDTO(userAgreement));
|
return R.ok(new AgreementDTO(userAgreement));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -120,7 +121,8 @@ public class SettingAppController {
|
|||||||
@Log(title = "获取隐私协议", businessType = BusinessType.OTHER, isSaveDb = false)
|
@Log(title = "获取隐私协议", businessType = BusinessType.OTHER, isSaveDb = false)
|
||||||
@SaIgnore
|
@SaIgnore
|
||||||
public R<AgreementDTO> privacyAgreement() {
|
public R<AgreementDTO> privacyAgreement() {
|
||||||
String privacyAgreement = agreementSettingService.getAgreementSetting().getPrivacyAgreement();
|
// String privacyAgreement = agreementSettingService.getAgreementSetting().getPrivacyAgreement();
|
||||||
|
String privacyAgreement = systemConfigManager.getSystemConfig(SystemConfigEnum.PRIVACY_AGREEMENT);
|
||||||
return R.ok(new AgreementDTO(privacyAgreement));
|
return R.ok(new AgreementDTO(privacyAgreement));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -128,7 +130,8 @@ public class SettingAppController {
|
|||||||
@Operation(summary = "用户主播入驻协议")
|
@Operation(summary = "用户主播入驻协议")
|
||||||
@Log(title = "用户主播入驻协议", businessType = BusinessType.OTHER, isSaveDb = false)
|
@Log(title = "用户主播入驻协议", businessType = BusinessType.OTHER, isSaveDb = false)
|
||||||
public R<AgreementDTO> anchorJoinAgreement() {
|
public R<AgreementDTO> anchorJoinAgreement() {
|
||||||
String anchorJoinAgreement = agreementSettingService.getAgreementSetting().getAnchorJoinAgreement();
|
// String anchorJoinAgreement = agreementSettingService.getAgreementSetting().getAnchorJoinAgreement();
|
||||||
|
String anchorJoinAgreement = systemConfigManager.getSystemConfig(SystemConfigEnum.ANCHOR_JOIN_AGREEMENT);
|
||||||
return R.ok(new AgreementDTO(anchorJoinAgreement));
|
return R.ok(new AgreementDTO(anchorJoinAgreement));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,9 @@ public enum SystemConfigEnum {
|
|||||||
PASSWORD_ADMIN("", "公用密码",SystemConfigGroupEnum.SYSTEM),
|
PASSWORD_ADMIN("", "公用密码",SystemConfigGroupEnum.SYSTEM),
|
||||||
COS_DOMAIN("http://nono-1257812345.cos.ap-shanghai.myqcloud.com/", "文件系统域名前缀",SystemConfigGroupEnum.SYSTEM),
|
COS_DOMAIN("http://nono-1257812345.cos.ap-shanghai.myqcloud.com/", "文件系统域名前缀",SystemConfigGroupEnum.SYSTEM),
|
||||||
SYSTEM_CUSTOMER_SERVICE("2,4", "系统客服",SystemConfigGroupEnum.SYSTEM),
|
SYSTEM_CUSTOMER_SERVICE("2,4", "系统客服",SystemConfigGroupEnum.SYSTEM),
|
||||||
|
PRIVACY_AGREEMENT("/#/agreement/privacy", "隐私协议地址",SystemConfigGroupEnum.SYSTEM),
|
||||||
|
USER_AGREEMENT("/#/agreement/user", "用户协议地址",SystemConfigGroupEnum.SYSTEM),
|
||||||
|
ANCHOR_JOIN_AGREEMENT("/#/agreement/anchor-join", "主播入驻协议地址",SystemConfigGroupEnum.SYSTEM),
|
||||||
WS_SOCKET_URL("ws://localhost:8080/ws?token=%s&room_id=%s", "ws通讯地址",SystemConfigGroupEnum.SYSTEM),
|
WS_SOCKET_URL("ws://localhost:8080/ws?token=%s&room_id=%s", "ws通讯地址",SystemConfigGroupEnum.SYSTEM),
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user