Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_highgold
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
android
android_highgold
Commits
6851f0f5
Commit
6851f0f5
authored
Oct 29, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
1b30ead0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
13 deletions
+22
-13
ShumeiManager.java
...c/main/java/com/mints/highgold/manager/ShumeiManager.java
+22
-12
remoteview.xml
highgold/app/src/main/res/layout/remoteview.xml
+0
-1
No files found.
highgold/app/src/main/java/com/mints/highgold/manager/ShumeiManager.java
View file @
6851f0f5
...
...
@@ -55,6 +55,7 @@ public class ShumeiManager {
* 初始化数美SDK
*/
public
void
initShumei
()
{
try
{
//1.通用配置项
SmAntiFraud
.
SmOption
option
=
new
SmAntiFraud
.
SmOption
();
option
.
setOrganization
(
ORGANIZATION
);
//必填,组织标识,邮件中organization项
...
...
@@ -66,12 +67,21 @@ public class ShumeiManager {
// option.setArea(SmAntiFraud.AREA_FJNY); //连接美国机房客户使用此选项
//3.SDK 初始化
SmAntiFraud
.
create
(
context
,
option
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
/**
* 获取数美id
*/
public
String
getShumeiDeviceId
()
{
return
SmAntiFraud
.
getDeviceId
();
String
id
=
""
;
try
{
id
=
SmAntiFraud
.
getDeviceId
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
id
;
}
}
highgold/app/src/main/res/layout/remoteview.xml
View file @
6851f0f5
...
...
@@ -71,7 +71,6 @@
android:textSize=
"@dimen/font_size_10"
/>
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
...
...
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