Use zxing.org encoder in next version of zxing.appspot.com

git-svn-id: https://zxing.googlecode.com/svn/trunk@2921 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen@gmail.com 2013-11-25 08:28:59 +00:00
parent 52e12eee89
commit 5b3495e21e
2 changed files with 2 additions and 1 deletions

View file

@ -154,6 +154,7 @@
<version>2.5.1</version> <version>2.5.1</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId> <artifactId>maven-resources-plugin</artifactId>
<version>2.6</version> <version>2.6</version>
</plugin> </plugin>

View file

@ -197,7 +197,7 @@ public final class Generator implements EntryPoint {
private static String getUrl(int sizeX, int sizeY, String ecLevel, String encoding, String content) { private static String getUrl(int sizeX, int sizeY, String ecLevel, String encoding, String content) {
StringBuilder result = new StringBuilder(100); StringBuilder result = new StringBuilder(100);
result.append("http://chart.apis.google.com/chart?cht=qr"); result.append("http://zxing.org/w/chart?cht=qr");
result.append("&chs=").append(sizeX).append('x').append(sizeY); result.append("&chs=").append(sizeX).append('x').append(sizeY);
result.append("&chld=").append(ecLevel); result.append("&chld=").append(ecLevel);
result.append("&choe=").append(encoding); result.append("&choe=").append(encoding);