|
|
@@ -14,9 +14,9 @@ import com.doc.common.core.domain.AjaxResult;
|
|
|
import com.doc.common.core.page.TableDataInfo;
|
|
|
import com.doc.common.enums.BusinessType;
|
|
|
import com.doc.common.utils.SecurityUtils;
|
|
|
-import com.doc.system.service.TencentSmsService;
|
|
|
import com.doc.system.service.ISysConfigService;
|
|
|
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;
|
|
|
@@ -115,7 +115,9 @@ public class DocActorController extends BaseController {
|
|
|
if (!pair.getKey()) {
|
|
|
String fromUser = SecurityUtils.getLoginUser().getUser().getNickName();
|
|
|
String fileName = info.getFileName();
|
|
|
- fileName = fileName.substring(0, fileName.indexOf("."));
|
|
|
+ if (fileName.indexOf(".") != -1) {
|
|
|
+ fileName = fileName.substring(0, fileName.indexOf("."));
|
|
|
+ }
|
|
|
//如果不在线发送短信
|
|
|
TencentSmsService.send(TencentSmsService.FILE_ACTOR, pair.getValue(), fromUser, fileName);
|
|
|
}
|