diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/resources/i18n/messages_ar.properties b/rc-service/rc-service-other/other-infrastructure/src/main/resources/i18n/messages_ar.properties index 8ffe3aad..3c973ccd 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/resources/i18n/messages_ar.properties +++ b/rc-service/rc-service-other/other-infrastructure/src/main/resources/i18n/messages_ar.properties @@ -41,5 +41,6 @@ props.type.SPECIAL_ID=معرف خاص props.type.ACTIVITY=شارة props.type.ADMINISTRATOR=شارة props.type.ACHIEVEMENT=شارة +props.type.BADGE=شارة props.type.HONOR_ACTIVITY=شرف props.type.HONOR_ADMIN=شرف diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/resources/i18n/messages_en.properties b/rc-service/rc-service-other/other-infrastructure/src/main/resources/i18n/messages_en.properties index ce4f29c0..623246fc 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/resources/i18n/messages_en.properties +++ b/rc-service/rc-service-other/other-infrastructure/src/main/resources/i18n/messages_en.properties @@ -41,6 +41,7 @@ props.type.SPECIAL_ID=Special ID props.type.ACTIVITY=Badge props.type.ADMINISTRATOR=Badge props.type.ACHIEVEMENT=Badge +props.type.BADGE=Badge props.type.HONOR_ACTIVITY=Honor props.type.HONOR_ADMIN=Honor diff --git a/rc-service/rc-service-other/other-start/src/test/java/DailTaskTest.java b/rc-service/rc-service-other/other-start/src/test/java/DailTaskTest.java index f196e2c6..d0724ad4 100644 --- a/rc-service/rc-service-other/other-start/src/test/java/DailTaskTest.java +++ b/rc-service/rc-service-other/other-start/src/test/java/DailTaskTest.java @@ -1,8 +1,12 @@ import com.red.circle.OtherServiceApplication; +import com.red.circle.common.business.core.enums.SysOriginPlatformEnum; +import com.red.circle.common.business.enums.SendPropsOrigin; import com.red.circle.other.app.scheduler.DailyTask; import com.red.circle.other.app.scheduler.RankingActivityRewardTask; import com.red.circle.other.app.scheduler.RocketStatusSyncTask; import com.red.circle.other.app.service.room.RocketStatusCacheService; +import com.red.circle.other.inner.endpoint.activity.PropsActivityClient; +import com.red.circle.other.inner.model.cmd.activity.SendActivityRewardCmd; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -19,6 +23,8 @@ public class DailTaskTest { private RankingActivityRewardTask rankingActivityRewardTask; @Autowired private RocketStatusSyncTask rocketStatusSyncTask; + @Autowired + private PropsActivityClient propsActivityClient; @Test public void DailTaskTest() { @@ -30,6 +36,20 @@ public class DailTaskTest { rankingActivityRewardTask.sendRankingActivityReward(); } + @Test + public void testSendProps() { + Long activityId = 1231111L; + Long userId = 1957345312961527809L; + + propsActivityClient.sendActivityReward(new SendActivityRewardCmd() + .setTrackId(activityId) + .setOrigin(SendPropsOrigin.RANKING_ACTIVITY) + .setSysOrigin(SysOriginPlatformEnum.LIKEI) + .setSourceGroupId(1995472724921741314L) + .setAcceptUserId(userId) + ); + } + @Test public void DailTaskTest3() { rocketStatusSyncTask.syncRocketStatus();