Commit 62e26bb7 by 石头

整合词条页面

1 parent dd06009c
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>cihai-wechat</artifactId> <artifactId>cihai-wechat</artifactId>
<packaging>war</packaging> <packaging>war</packaging>
<name>cihai-wechat Maven Webapp</name>
<properties> <properties>
<maven.test.skip>true</maven.test.skip> <maven.test.skip>true</maven.test.skip>
<jetty.scope>compile</jetty.scope> <jetty.scope>compile</jetty.scope>
......
...@@ -35,6 +35,7 @@ import com.dookay.coral.common.web.response.JsonResult; ...@@ -35,6 +35,7 @@ import com.dookay.coral.common.web.response.JsonResult;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; 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.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
...@@ -135,6 +136,7 @@ public class HomeController extends BaseController { ...@@ -135,6 +136,7 @@ public class HomeController extends BaseController {
@RequestMapping(value = "/image/search", method = RequestMethod.POST, produces = MediaTypes.JSON_UTF_8) @RequestMapping(value = "/image/search", method = RequestMethod.POST, produces = MediaTypes.JSON_UTF_8)
@ResponseBody @ResponseBody
public JsonResult imageSearch(String image) { public JsonResult imageSearch(String image) {
System.out.println(image);
try { try {
ScanResult imageResult = aipDefaultClient.scan(image); ScanResult imageResult = aipDefaultClient.scan(image);
System.out.println(imageResult); System.out.println(imageResult);
......
tGwXZxGpjh801fu8
\ No newline at end of file \ No newline at end of file
...@@ -70,7 +70,14 @@ ...@@ -70,7 +70,14 @@
// }); // });
location.href = data.data; location.href = data.data;
} else { } else {
myApp.dialog.alert(data.message); myApp.dialog.create({
title: data.message,
buttons: [
{
text: 'OK',
}
],
}).open();
$('.j_search_input').val(res.translateResult); $('.j_search_input').val(res.translateResult);
} }
}) })
...@@ -114,7 +121,14 @@ ...@@ -114,7 +121,14 @@
// }); // });
location.href = data.data; location.href = data.data;
} else { } else {
myApp.dialog.alert(data.message); myApp.dialog.create({
title: data.message,
buttons: [
{
text: 'OK',
}
],
}).open();
} }
}) })
} }
......
This diff could not be displayed because it is too large.
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
<build> <build>
<pluginManagement> <pluginManagement>
<plugins> <plugins>
<!--打包插件 - 指定 java 版本--> <!--打包插件 - 指定 java 版本-->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
...@@ -82,6 +83,14 @@ ...@@ -82,6 +83,14 @@
<target>${java.version}</target> <target>${java.version}</target>
</configuration> </configuration>
</plugin> </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 版本--> <!--打包插件 - 指定 java 版本-->
</plugins> </plugins>
</pluginManagement> </pluginManagement>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!