Commit 59f7a42f authored by Paul0523's avatar Paul0523

增加win登录功能

parent 01e23e80
package com.yg84;
import com.squareup.okhttp.OkHttpClient;
import com.yg84.weixin.Contact;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* Created by fangzhipeng on 2017/7/16.
*/
......@@ -20,4 +22,8 @@ public class Login {
return WeixinApplication.weChat.sendMsg(name, content);
}
@RequestMapping
public List<Contact> getContact() {
return WeixinApplication.weChat.getContacts();
}
}
server.port=9998
server.tomcat.uri-encoding=utf-8
\ No newline at end of file
server.tomcat.uri-encoding=utf-8
server.context-path=/back
\ No newline at end of file
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