Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wxBot
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
wxBot
Commits
59f7a42f
Commit
59f7a42f
authored
Jul 25, 2017
by
Paul0523
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加win登录功能
parent
01e23e80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
src/main/java/com/yg84/Login.java
src/main/java/com/yg84/Login.java
+7
-1
src/main/resources/application.properties
src/main/resources/application.properties
+2
-1
No files found.
src/main/java/com/yg84/Login.java
View file @
59f7a42f
package
com
.
yg84
;
package
com
.
yg84
;
import
com.
squareup.okhttp.OkHttpClien
t
;
import
com.
yg84.weixin.Contac
t
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
/**
* Created by fangzhipeng on 2017/7/16.
* Created by fangzhipeng on 2017/7/16.
*/
*/
...
@@ -20,4 +22,8 @@ public class Login {
...
@@ -20,4 +22,8 @@ public class Login {
return
WeixinApplication
.
weChat
.
sendMsg
(
name
,
content
);
return
WeixinApplication
.
weChat
.
sendMsg
(
name
,
content
);
}
}
@RequestMapping
public
List
<
Contact
>
getContact
()
{
return
WeixinApplication
.
weChat
.
getContacts
();
}
}
}
src/main/resources/application.properties
View file @
59f7a42f
server.port
=
9998
server.port
=
9998
server.tomcat.uri-encoding
=
utf-8
server.tomcat.uri-encoding
=
utf-8
\ No newline at end of file
server.context-path
=
/back
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment