Browse Source

咨询修改,适配上传截取图片修改,上传文件大小限制修改!

8 years ago
parent
commit
4f9d886a9b

+ 1 - 1
patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/consult/ConsultTeamService.java

@ -1604,7 +1604,7 @@ public class ConsultTeamService extends ConsultService {
        } else {
            if (endOperator.equals("admin")) {
                endId = "system";
                endName = "system";
                endName = "咨询超时未回复,系统自动";
            } else {
                Doctor d = doctorDao.findByCode(endOperator);
                endId = d.getCode();

+ 1 - 1
patient-co-wlyy/src/main/java/com/yihu/wlyy/util/CommonUtil.java

@ -282,7 +282,7 @@ public class CommonUtil {
        video.setSize(new VideoSize(600, 500));
        EncodingAttributes attrs = new EncodingAttributes();
        attrs.setFormat("image2");//转图片
        attrs.setOffset(1f);//设置偏移位置,即开始转码位置(3秒)
        attrs.setOffset(0.01f);//设置偏移位置,即开始转码位置(3秒)
        attrs.setDuration(0.01f);//设置转码持续时间(1秒)
        attrs.setVideoAttributes(video);
        encoder.encode(source, target, attrs);

+ 2 - 2
patient-co-wlyy/src/main/webapp/WEB-INF/spring-mvc.xml

@ -68,8 +68,8 @@
			<value>UTF-8</value>
		</property>
		<property name="maxUploadSize">
			<!-- 上传文件大小限制为31M,31*1024*1024 -->
			<value>32505856</value>
			<!-- 上传文件大小限制为31M,50*1024*1024 -->
			<value>52428800</value>
		</property>
		<property name="maxInMemorySize">
			<value>4096</value>