| | |
| | | import cc.mrbird.febs.dapp.entity.DataDictionaryCustom; |
| | | import cc.mrbird.febs.dapp.mapper.DappMemberDao; |
| | | import cc.mrbird.febs.dapp.mapper.DataDictionaryCustomMapper; |
| | | import cc.mrbird.febs.dapp.utils.BoxUtil; |
| | | import cn.hutool.core.util.RandomUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.junit.jupiter.api.Test; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | | import org.web3j.abi.datatypes.Int; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author wzy |
| | |
| | | break; |
| | | } |
| | | parentId = parentMember.getRefererId(); |
| | | if(StringUtils.isBlank(parentId) || "0".equals(parentId)){ |
| | | if (StringUtils.isBlank(parentId) || "0".equals(parentId)) { |
| | | break; |
| | | } |
| | | if (parentMember.getRefererId().equals(parentMember.getInviteId())) { |
| | |
| | | public void redisTest() { |
| | | redisUtils.hget("1234567", "1111111"); |
| | | } |
| | | |
| | | private Map<Integer, Integer> map = new HashMap<>(); |
| | | private int BOX_OPEN_CNT = 0; |
| | | |
| | | @Test |
| | | public void boxOpenTest() { |
| | | Runnable runnable = new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | BoxUtil.openBox(); |
| | | } |
| | | }; |
| | | |
| | | for (int i = 0; i < 12; i++) { |
| | | Thread thread = new Thread(runnable); |
| | | thread.start(); |
| | | } |
| | | |
| | | } |
| | | |
| | | } |