Commit 06587fd9 authored by 332784038@qq.com's avatar 332784038@qq.com

Merge remote-tracking branch 'origin/release' into release

parents 1f4b72c1 7d231eb7
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
Target Server Version : 80031 (8.0.31) Target Server Version : 80031 (8.0.31)
File Encoding : 65001 File Encoding : 65001
Date: 18/10/2024 09:26:20 Date: 24/10/2024 09:12:01
*/ */
SET NAMES utf8mb4; SET NAMES utf8mb4;
...@@ -35,4 +35,8 @@ CREATE TABLE `member_user_level_config` ( ...@@ -35,4 +35,8 @@ CREATE TABLE `member_user_level_config` (
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '会员等级配置表' ROW_FORMAT = DYNAMIC; ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '会员等级配置表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of member_user_level_config
-- ----------------------------
INSERT INTO `member_user_level_config` VALUES (1, 'vip1', 0, 100, 'https://statictest.groupage.cn/2024/09/06/66dac1dfe4b0e404e1c7816f.png', '1', '2024-09-03 10:05:14', '1', '2024-09-06 16:48:34', 0);
SET FOREIGN_KEY_CHECKS = 1; SET FOREIGN_KEY_CHECKS = 1;
...@@ -60,12 +60,10 @@ import static cn.iocoder.yudao.module.member.enums.TransportTypeEnum.SPECIAL_LIN ...@@ -60,12 +60,10 @@ import static cn.iocoder.yudao.module.member.enums.TransportTypeEnum.SPECIAL_LIN
@Service @Service
@Validated @Validated
public class ScoreRuleServiceImpl extends AbstractService<ScoreRuleMapper, ScoreRuleDO> implements ScoreRuleService { public class ScoreRuleServiceImpl extends AbstractService<ScoreRuleMapper, ScoreRuleDO> implements ScoreRuleService {
private static final String PROD_REGISTER_URL = "https://app2.groupage.cn/#/pages/register/shareRegister?code="; @Value("${yudao.member.register-url}")
private static final String UAT_REGISTER_URL = "https://apptest.groupage.cn/#/pages/register/shareRegister?code="; private String registerUrl;
private static final String PROD_SHARE_URL = "https://app2.groupage.cn/#"; @Value("${yudao.member.share-url}")
private static final String UAT_SHARE_URL = "https://apptest.groupage.cn/#"; private String shareUrl;
@Value("${spring.profiles.active}")
private String env;
@Resource @Resource
private ScoreRuleMapper scoreRuleMapper; private ScoreRuleMapper scoreRuleMapper;
@Resource @Resource
...@@ -659,19 +657,15 @@ public class ScoreRuleServiceImpl extends AbstractService<ScoreRuleMapper, Score ...@@ -659,19 +657,15 @@ public class ScoreRuleServiceImpl extends AbstractService<ScoreRuleMapper, Score
ScoreRulerRecommendExtraVO scoreRulerRecommendExtraVO = JsonUtils.parseObject(scoreRuleDO.getExtra(), ScoreRulerRecommendExtraVO.class); ScoreRulerRecommendExtraVO scoreRulerRecommendExtraVO = JsonUtils.parseObject(scoreRuleDO.getExtra(), ScoreRulerRecommendExtraVO.class);
appScoreRuleListBackVO.setExtraRecommend(scoreRulerRecommendExtraVO); appScoreRuleListBackVO.setExtraRecommend(scoreRulerRecommendExtraVO);
MemberUserDO memberUserDO = memberUserService.getUser(reqVO.getMemberId()); MemberUserDO memberUserDO = memberUserService.getUser(reqVO.getMemberId());
if (memberUserDO != null && !"pro".equals(env)) { if (memberUserDO != null) {
appScoreRuleListBackVO.setRecommendUrl(UAT_REGISTER_URL + memberUserDO.getCode()); appScoreRuleListBackVO.setRecommendUrl(registerUrl + memberUserDO.getCode());
} else if (memberUserDO != null) {
appScoreRuleListBackVO.setRecommendUrl(PROD_REGISTER_URL + memberUserDO.getCode());
} }
} else if (scoreRuleDO.getType() == ScoreRuleTypeEnum.SHARE.getValue()) { } else if (scoreRuleDO.getType() == ScoreRuleTypeEnum.SHARE.getValue()) {
ScoreRuleShareExtraVO scoreRuleShareExtraVO = JsonUtils.parseObject(scoreRuleDO.getExtra(), ScoreRuleShareExtraVO.class); ScoreRuleShareExtraVO scoreRuleShareExtraVO = JsonUtils.parseObject(scoreRuleDO.getExtra(), ScoreRuleShareExtraVO.class);
MemberUserDO memberUserDO = memberUserService.getUser(reqVO.getMemberId()); MemberUserDO memberUserDO = memberUserService.getUser(reqVO.getMemberId());
String activityUrl = scoreRuleShareExtraVO.getActivityUrl(); String activityUrl = scoreRuleShareExtraVO.getActivityUrl();
if (memberUserDO != null && !"pro".equals(env)) { if (memberUserDO != null) {
scoreRuleShareExtraVO.setActivityUrl(UAT_SHARE_URL + activityUrl); scoreRuleShareExtraVO.setActivityUrl(shareUrl + activityUrl);
} else if (memberUserDO != null) {
scoreRuleShareExtraVO.setActivityUrl(PROD_SHARE_URL + activityUrl);
} }
appScoreRuleListBackVO.setExtraShare(scoreRuleShareExtraVO); appScoreRuleListBackVO.setExtraShare(scoreRuleShareExtraVO);
} }
......
...@@ -221,6 +221,9 @@ yudao: ...@@ -221,6 +221,9 @@ yudao:
send-maximum-quantity-per-day: 50 send-maximum-quantity-per-day: 50
begin-code: 9999 # 验证码最小值 begin-code: 9999 # 验证码最小值
end-code: 9999 # 验证码最大值。 end-code: 9999 # 验证码最大值。
member: # 会员相关配置
register-url: https://apptest.groupage.cn/#/pages/register/shareRegister?code=
share-url: https://apptest.groupage.cn/#
justauth: justauth:
enabled: true enabled: true
......
...@@ -225,6 +225,9 @@ yudao: ...@@ -225,6 +225,9 @@ yudao:
send-maximum-quantity-per-day: 50 send-maximum-quantity-per-day: 50
begin-code: 9999 # 验证码最小值 begin-code: 9999 # 验证码最小值
end-code: 9999 # 验证码最大值。 end-code: 9999 # 验证码最大值。
member: # 会员相关配置
register-url: https://applocal.groupage.cn/#/pages/register/shareRegister?code=
share-url: https://applocal.groupage.cn/#
justauth: justauth:
enabled: true enabled: true
......
...@@ -217,6 +217,9 @@ yudao: ...@@ -217,6 +217,9 @@ yudao:
send-maximum-quantity-per-day: 50 send-maximum-quantity-per-day: 50
begin-code: 1000 # 验证码最小值 begin-code: 1000 # 验证码最小值
end-code: 9999 # 验证码最大值。 end-code: 9999 # 验证码最大值。
member: # 会员相关配置
register-url: https://app2.groupage.cn/#/pages/register/shareRegister?code=
share-url: https://app2.groupage.cn/#
justauth: justauth:
enabled: true enabled: true
......
...@@ -217,6 +217,9 @@ yudao: ...@@ -217,6 +217,9 @@ yudao:
send-maximum-quantity-per-day: 50 send-maximum-quantity-per-day: 50
begin-code: 9999 # 验证码最小值 begin-code: 9999 # 验证码最小值
end-code: 9999 # 验证码最大值。 end-code: 9999 # 验证码最大值。
member: # 会员相关配置
register-url: https://apptest.groupage.cn/#/pages/register/shareRegister?code=
share-url: https://apptest.groupage.cn/#
justauth: justauth:
enabled: true enabled: true
......
...@@ -218,6 +218,9 @@ yudao: ...@@ -218,6 +218,9 @@ yudao:
send-maximum-quantity-per-day: 50 send-maximum-quantity-per-day: 50
begin-code: 9999 # 验证码最小值 begin-code: 9999 # 验证码最小值
end-code: 9999 # 验证码最大值。 end-code: 9999 # 验证码最大值。
member: # 会员相关配置
register-url: https://apptest.groupage.cn/#/pages/register/shareRegister?code=
share-url: https://apptest.groupage.cn/#
justauth: justauth:
enabled: true enabled: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment