| | |
| | |
|
| | | import com.yeshi.fanli.dao.mybatis.homemodule.CommonShareInfoMapper;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.CommonShareInfo;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.CommonShareInfo.CommonShareInfoEnum;
|
| | | import com.yeshi.fanli.exception.goods.ConvertLinkExceptionException;
|
| | | import com.yeshi.fanli.exception.homemodule.SpecialException;
|
| | | import com.yeshi.fanli.service.inter.homemodule.CommonShareInfoService;
|
| | |
| | |
|
| | | if (record.getNeedSpin()) {
|
| | | try {
|
| | | convertLinkManager.convertLinkFromText(record.getComment(), Constant.LINK_TOKEN_VERIFY_UID, true);
|
| | | convertLinkManager.convertLinkFromText(record.getComment(), Constant.LINK_TOKEN_VERIFY_UID, true,false);
|
| | | } catch (ConvertLinkExceptionException e) {
|
| | | if (ConvertLinkExceptionException.CODE_NONE != e.getCode()) {
|
| | | throw new SpecialException(1, "包含不可转链的口令与链接");
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | // 重置id
|
| | | record.setId(null);
|
| | | |
| | | CommonShareInfo info = commonShareInfoMapper.getByPidAndType(record.getPid(), record.getType().name());
|
| | | if (info == null) {
|
| | | commonShareInfoMapper.insertSelective(record);
|