|
|
@@ -9,8 +9,8 @@ import com.doc.chat.service.IChatMsgService;
|
|
|
import com.doc.common.core.controller.BaseController;
|
|
|
import com.doc.common.core.domain.AjaxResult;
|
|
|
import com.doc.common.utils.SecurityUtils;
|
|
|
-import com.doc.system.service.TencentSmsService;
|
|
|
import com.doc.system.service.ISysUserService;
|
|
|
+import com.doc.system.service.TencentSmsService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
@@ -85,7 +85,11 @@ public class DocShareController extends BaseController {
|
|
|
String fromUser = SecurityUtils.getLoginUser().getUser().getNickName();
|
|
|
DocInfo docInfo = docInfoService.selectDocInfoByDocId(docId);
|
|
|
String fileName = docInfo.getFileName();
|
|
|
- fileName = fileName.substring(0, fileName.indexOf("."));
|
|
|
+ String split = ".";
|
|
|
+ int pos = fileName.indexOf(split);
|
|
|
+ if (pos != -1) {
|
|
|
+ fileName = fileName.substring(0, pos);
|
|
|
+ }
|
|
|
|
|
|
//如果不在线发送短信
|
|
|
TencentSmsService.send(TencentSmsService.FILE_SHARE, pair.getValue(), fromUser, fileName);
|