Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
李雅为
/
wechat_click
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8679180c
authored
Apr 04, 2018
by
jeffrey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改返回方式 把日志上传服务器
parent
631b161e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
2 deletions
+16
-2
app/build.gradle
+2
-2
app/src/main/java/com/xf/weixinclick/NewService.java
+0
-0
app/src/main/java/com/xf/weixinclick/http/ClientApi.java
+2
-0
app/src/main/java/com/xf/weixinclick/http/HttpClientApi.java
+12
-0
No files found.
app/build.gradle
View file @
8679180c
...
...
@@ -22,8 +22,8 @@ android {
applicationId
"com.xf.weixinclick"
minSdkVersion
21
targetSdkVersion
25
versionCode
6
versionName
"1.5.
2
"
versionCode
7
versionName
"1.5.
3
"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
externalNativeBuild
{
cmake
{
...
...
app/src/main/java/com/xf/weixinclick/NewService.java
View file @
8679180c
This diff is collapsed.
Click to expand it.
app/src/main/java/com/xf/weixinclick/http/ClientApi.java
View file @
8679180c
...
...
@@ -21,4 +21,6 @@ public interface ClientApi{
Observable
<
String
>
devicesScan
(
@Body
Map
<
String
,
String
>
params
);
@POST
(
"devices/enable"
)
Observable
<
String
>
devicesEnable
(
@Body
Map
<
String
,
String
>
params
);
@POST
(
"devices/log"
)
Observable
<
String
>
devicesLog
(
@Body
Map
<
String
,
String
>
params
);
}
app/src/main/java/com/xf/weixinclick/http/HttpClientApi.java
View file @
8679180c
...
...
@@ -184,4 +184,16 @@ public class HttpClientApi {
.
observeOn
(
main
)
.
subscribe
(
subscriber
);
}
public
static
void
uploadDeviceLog
(
String
device_code
,
String
tag
,
String
message
,
Subscriber
<
String
>
subscriber
)
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"code"
,
device_code
);
map
.
put
(
"name"
,
tag
);
map
.
put
(
"msg"
,
message
);
getInstance
().
devicesLog
(
map
)
.
subscribeOn
(
io
)
.
observeOn
(
io
)
.
subscribe
(
subscriber
);
}
}
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