Commit 7394cd54 by 裴大威

Merge branch 'feat-1002291-new' into 'master'

fix name

See merge request rays/pcloud-book!380
parents df578ffe 218ba335
......@@ -31,6 +31,7 @@ import com.pcloud.common.core.aspect.ParamLog;
import com.pcloud.common.page.PageBeanNew;
import com.pcloud.common.page.PageParam;
import com.pcloud.common.utils.ListUtils;
import com.pcloud.common.utils.string.StringUtil;
import com.pcloud.contentcenter.resource.dto.ResourceDTO;
import com.pcloud.wechatgroup.group.dto.GroupRobotDTO;
import com.sdk.wxgroup.*;
......@@ -390,7 +391,9 @@ public class PcloudSkillBizImpl implements PcloudSkillBiz {
} else if(WelcomeReplyTypeEnum.RESOURCE.value.equals(type)) {
SendFileVO sendFileVO = new SendFileVO();
sendFileVO.setFileUrl(reply.getResourceUrl());
sendFileVO.setFileName(reply.getContent().split(".")[0]);
if (!StringUtil.isEmpty(reply.getResourceName())){
sendFileVO.setFileName(reply.getResourceName().substring(0,reply.getResourceName().lastIndexOf(".")));
}
sendFileVO.setIp(ip);
sendFileVO.setAltId(robotWxId);
sendFileVO.setWxId(userWxId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment