| | |
| | | import com.lf.server.entity.ctrl.RegisterEntity; |
| | | import com.lf.server.entity.data.MetaEntity; |
| | | import com.lf.server.entity.data.PublishEntity; |
| | | import com.lf.server.entity.sys.UserEntity; |
| | | import com.lf.server.helper.PathHelper; |
| | | import com.lf.server.helper.RestHelper; |
| | | import com.lf.server.helper.StringHelper; |
| | | import com.lf.server.helper.WebHelper; |
| | | import com.lf.server.mapper.data.PublishMapper; |
| | | import com.lf.server.service.sys.TokenService; |
| | | import org.apache.commons.logging.Log; |
| | | import org.apache.commons.logging.LogFactory; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | |
| | | @Resource |
| | | PathHelper pathHelper; |
| | | |
| | | @Resource |
| | | TokenService tokenService; |
| | | |
| | | private final static Log log = LogFactory.getLog(PublishService.class); |
| | | |
| | |
| | | } |
| | | |
| | | for (PublishEntity entity : list) { |
| | | // 避免重复注册 |
| | | if (null != entity.getUpdateTime()) { |
| | | continue; |
| | | } |
| | | |
| | | String url = entity.getUrl().replace("{host}", iisHost); |
| | | String type = getServerType(entity); |
| | | |
| | |
| | | PubEntity entity = new PubEntity(); |
| | | entity.setIds(ids); |
| | | entity.setDircode("00"); |
| | | entity.setToken(WebHelper.getToken(req)); |
| | | |
| | | UserEntity ue = tokenService.getCurrentUser(req); |
| | | if (ue != null) { |
| | | entity.setUserId(ue.getId()); |
| | | entity.setToken(WebHelper.getToken(req)); |
| | | } |
| | | |
| | | long rows = postForPub(entity, "/Convert/DeleteFiles"); |
| | | } |