Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-qywx-self
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
gic-qywx-self
Commits
15f1275d
Commit
15f1275d
authored
Aug 10, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '转web' into 'master'
add See merge request
!14
parents
dddf50eb
1910d479
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
QywxSelfApiServiceImpl.java
src/main/java/com/gic/qywx/self/QywxSelfApiServiceImpl.java
+1
-6
dubbo-haoban-self-web.xml
src/main/webapp/WEB-INF/dubbo-haoban-self-web.xml
+5
-2
No files found.
src/main/java/com/gic/qywx/self/QywxSelfApiServiceImpl.java
View file @
15f1275d
...
...
@@ -12,24 +12,20 @@ import org.springframework.util.StringUtils;
import
java.util.HashMap
;
import
java.util.Map
;
@Service
(
"qywxSelfApiService"
)
public
class
QywxSelfApiServiceImpl
implements
QywxSelfApiService
{
public
class
QywxSelfApiServiceImpl
{
private
Logger
logger
=
LogManager
.
getLogger
(
QywxSelfApiServiceImpl
.
class
);
@Override
public
Map
<
String
,
Object
>
selfPost
(
String
url
,
String
json
,
String
ip
)
{
logger
.
info
(
"自建post,url={},json={},{}"
,
url
,
json
,
ip
);
Map
<
String
,
Object
>
map
=
HttpClient
.
getWinxinResByJson
(
url
,
json
,
getIp
(
ip
)
,
ip
);
return
map
;
}
@Override
public
Map
<
String
,
Object
>
selfGet
(
String
url
,
String
ip
)
{
logger
.
info
(
"自建get,url={},ip={}"
,
url
,
ip
);
Map
<
String
,
Object
>
map
=
HttpClient
.
getHttpByGet
(
url
,
getIp
(
ip
)
,
ip
);
return
map
;
}
@Override
public
Map
<
String
,
Object
>
selfUpload
(
String
url
,
String
fileUrl
,
String
fileName
,
String
ip
)
{
logger
.
info
(
"自建upload,url={},fileUrl={},ip={}"
,
url
,
fileUrl
,
ip
);
byte
[]
data
=
CommonUtil
.
getFileByte
(
fileUrl
);
...
...
@@ -38,7 +34,6 @@ public class QywxSelfApiServiceImpl implements QywxSelfApiService {
Map
<
String
,
Object
>
map
=
HttpClient
.
getWinxinResByFile
(
url
,
paramsMap
,
getIp
(
ip
)
,
ip
);
return
map
;
}
@Override
public
Map
<
String
,
Object
>
selfImage
(
String
url
,
String
fileName
,
String
ip
,
byte
[]
data
)
{
logger
.
info
(
"自建upload-data,url={},ip={}"
,
url
,
ip
);
Map
<
String
,
ContentBody
>
paramsMap
=
new
HashMap
<
String
,
ContentBody
>();
...
...
src/main/webapp/WEB-INF/dubbo-haoban-self-web.xml
View file @
15f1275d
...
...
@@ -8,11 +8,13 @@
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd"
>
<context:component-scan
base-package=
"com.gic.qywx.*"
/>
<dubbo:application
name=
"gic-qywx-self"
/>
<!-- 用dubbo协议在20880端口暴露服务 -->
<!--
<context:component-scan base-package="com.gic.qywx.*"/>
<dubbo:protocol name="dubbo" port="20130" />
<dubbo:service interface="com.gic.haoban.manage.api.service.QywxSelfApiService" ref="qywxSelfApiService" retries="0"/>
-->
</beans>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment