Commit 3d51d1dd by 18356073052

聊天侧边栏去除语音

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