fix
Helius
2021-07-15 73204530b7c20b4b90f7277d34c7eb17c53021aa
gc-user/src/main/java/com/xzx/gc/user/service/DistribService.java
@@ -32,6 +32,7 @@
import com.xzx.gc.model.JsonResult;
import com.xzx.gc.user.dto.UpdateSettingDto;
import com.xzx.gc.user.mapper.RedPaperRuleMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@@ -46,6 +47,7 @@
import java.util.List;
import java.util.Map;
@Slf4j
@Service
@Transactional
public class DistribService {
@@ -104,6 +106,7 @@
    public void join(String headId, String userId) {
        log.info("#加入团队:{}, {}#", headId, userId);
        AccountInfo headInfo = accountMapper.selectOneByUserId(headId);
        if (AccountInfo.IS_HEAD_N.equals(headInfo.getIsHead())) {
            throw new RestException(-3, "不是团长");