Commit 9f71afa9 authored by fangzhipeng's avatar fangzhipeng

修复一些问题

parent 59f7a42f
...@@ -22,7 +22,7 @@ public class Login { ...@@ -22,7 +22,7 @@ public class Login {
return WeixinApplication.weChat.sendMsg(name, content); return WeixinApplication.weChat.sendMsg(name, content);
} }
@RequestMapping @RequestMapping(value = "/getContact")
public List<Contact> getContact() { public List<Contact> getContact() {
return WeixinApplication.weChat.getContacts(); return WeixinApplication.weChat.getContacts();
} }
......
...@@ -342,7 +342,7 @@ public class WeChat { ...@@ -342,7 +342,7 @@ public class WeChat {
// if retcode == '0': // if retcode == '0':
// return True // return True
// return False // return False
String[] hosts = new String[]{"webpush.","webpush2."}; String[] hosts = new String[]{"webpush."};
for (String host : hosts) { for (String host : hosts) {
SYNC_HOST = host + BASE_HOST; SYNC_HOST = host + BASE_HOST;
String retcode = sync(); String retcode = sync();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment