Commit bcd9207d by 18356073052

聊天侧边栏去除语音

1 parent 870a7ed0
...@@ -21,6 +21,7 @@ import org.springframework.stereotype.Service; ...@@ -21,6 +21,7 @@ import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import java.io.File; import java.io.File;
import java.io.InputStream;
import java.net.HttpURLConnection; import java.net.HttpURLConnection;
import java.net.URL; import java.net.URL;
import java.util.Arrays; import java.util.Arrays;
...@@ -141,7 +142,8 @@ public class WeMaterialServiceImpl implements IWeMaterialService { ...@@ -141,7 +142,8 @@ public class WeMaterialServiceImpl implements IWeMaterialService {
conn = (HttpURLConnection) materialUrl.openConnection(); conn = (HttpURLConnection) materialUrl.openConnection();
conn.setRequestMethod("GET"); conn.setRequestMethod("GET");
conn.setConnectTimeout(20 * 1000); conn.setConnectTimeout(20 * 1000);
return weMediaClient.upload(conn.getInputStream(), name, type); InputStream inputStream = conn.getInputStream();
return weMediaClient.upload(inputStream, name, type);
}catch (Exception e){ }catch (Exception e){
e.printStackTrace(); e.printStackTrace();
log.error("上传临时文件失败......url:{},type:{},name:{},ex:{},st:{}",url,type,name,e.getMessage(),e.getStackTrace()); log.error("上传临时文件失败......url:{},type:{},name:{},ex:{},st:{}",url,type,name,e.getMessage(),e.getStackTrace());
......
...@@ -31,8 +31,9 @@ ...@@ -31,8 +31,9 @@
FROM FROM
we_chat_side we_chat_side
<where> <where>
del_flag=0
<if test="h5!=null and h5!='' and h5=='1'.toString()"> <if test="h5!=null and h5!='' and h5=='1'.toString()">
`using`=0 AND `using`=0
</if> </if>
</where> </where>
</select> </select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!