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
Hide 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,23 +55,33 @@ public class ShumeiManager {
* 初始化数美SDK
*/
public
void
initShumei
()
{
//1.通用配置项
SmAntiFraud
.
SmOption
option
=
new
SmAntiFraud
.
SmOption
();
option
.
setOrganization
(
ORGANIZATION
);
//必填,组织标识,邮件中organization项
option
.
setAppId
(
APP_ID
);
//必填,应用标识,登录数美后台应用管理查看
option
.
setPublicKey
(
PUBLIC_KEY
);
//必填,加密 KEY,邮件中 android_public_key 附件内容
option
.
setAinfoKey
(
AINFO_KEY
);
//必填,加密 KEY,邮件中 Android ainfo key 项
//2.连接海外机房特殊配置项,仅供设备数据上报海外机房客户使用
// option.setArea(SmAntiFraud.AREA_XJP); //连接新加坡机房客户使用此选项
// option.setArea(SmAntiFraud.AREA_FJNY); //连接美国机房客户使用此选项
//3.SDK 初始化
SmAntiFraud
.
create
(
context
,
option
);
try
{
//1.通用配置项
SmAntiFraud
.
SmOption
option
=
new
SmAntiFraud
.
SmOption
();
option
.
setOrganization
(
ORGANIZATION
);
//必填,组织标识,邮件中organization项
option
.
setAppId
(
APP_ID
);
//必填,应用标识,登录数美后台应用管理查看
option
.
setPublicKey
(
PUBLIC_KEY
);
//必填,加密 KEY,邮件中 android_public_key 附件内容
option
.
setAinfoKey
(
AINFO_KEY
);
//必填,加密 KEY,邮件中 Android ainfo key 项
//2.连接海外机房特殊配置项,仅供设备数据上报海外机房客户使用
// option.setArea(SmAntiFraud.AREA_XJP); //连接新加坡机房客户使用此选项
// 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