Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
石磊
/
cihai
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 62e26bb7
authored
Dec 07, 2017
by
石头
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
整合词条页面
1 parent
dd06009c
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
3 deletions
serverside/cihai-wechat/pom.xml
serverside/cihai-wechat/src/main/java/com/dookay/cihai/wechat/controller/HomeController.java
serverside/cihai-wechat/src/main/webapp/MP_verify_tGwXZxGpjh801fu8.txt
serverside/cihai-wechat/src/main/webapp/WEB-INF/jsp/portal/home/index.jsp
serverside/cihai-wechat/src/main/webapp/static/css/vendor.css
serverside/pom.xml
serverside/cihai-wechat/pom.xml
View file @
62e26bb
...
...
@@ -8,7 +8,7 @@
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
cihai-wechat
</artifactId>
<packaging>
war
</packaging>
<name>
cihai-wechat Maven Webapp
</name>
<properties>
<maven.test.skip>
true
</maven.test.skip>
<jetty.scope>
compile
</jetty.scope>
...
...
serverside/cihai-wechat/src/main/java/com/dookay/cihai/wechat/controller/HomeController.java
View file @
62e26bb
...
...
@@ -35,6 +35,7 @@ import com.dookay.coral.common.web.response.JsonResult;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
...
...
@@ -135,6 +136,7 @@ public class HomeController extends BaseController {
@RequestMapping
(
value
=
"/image/search"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaTypes
.
JSON_UTF_8
)
@ResponseBody
public
JsonResult
imageSearch
(
String
image
)
{
System
.
out
.
println
(
image
);
try
{
ScanResult
imageResult
=
aipDefaultClient
.
scan
(
image
);
System
.
out
.
println
(
imageResult
);
...
...
serverside/cihai-wechat/src/main/webapp/MP_verify_tGwXZxGpjh801fu8.txt
0 → 100644
View file @
62e26bb
tGwXZxGpjh801fu8
\ No newline at end of file
serverside/cihai-wechat/src/main/webapp/WEB-INF/jsp/portal/home/index.jsp
View file @
62e26bb
...
...
@@ -70,7 +70,14 @@
// });
location.href = data.data;
} else {
myApp.dialog.alert(data.message);
myApp.dialog.create({
title: data.message,
buttons: [
{
text: 'OK',
}
],
}).open();
$('.j_search_input').val(res.translateResult);
}
})
...
...
@@ -114,7 +121,14 @@
// });
location.href = data.data;
} else {
myApp.dialog.alert(data.message);
myApp.dialog.create({
title: data.message,
buttons: [
{
text: 'OK',
}
],
}).open();
}
})
}
...
...
serverside/cihai-wechat/src/main/webapp/static/css/vendor.css
View file @
62e26bb
This diff could not be displayed because it is too large.
serverside/pom.xml
View file @
62e26bb
...
...
@@ -72,6 +72,7 @@
<build>
<pluginManagement>
<plugins>
<!--打包插件 - 指定 java 版本-->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
...
...
@@ -82,6 +83,14 @@
<target>
${java.version}
</target>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-war-plugin
</artifactId>
<version>
2.6
</version>
<configuration>
<warName>
${project.artifactId}
</warName>
</configuration>
</plugin>
<!--打包插件 - 指定 java 版本-->
</plugins>
</pluginManagement>
...
...
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