Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bcd9207d
authored
Feb 10, 2021
by
18356073052
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
聊天侧边栏去除语音
1 parent
870a7ed0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeMaterialServiceImpl.java
linkwe-wecom/src/main/resources/mapper/wecom/WeChatSideMapper.xml
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeMaterialServiceImpl.java
View file @
bcd9207
...
@@ -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
());
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeChatSideMapper.xml
View file @
bcd9207
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment