Commit 6851f0f5 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 1b30ead0
......@@ -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;
}
}
......@@ -71,7 +71,6 @@
android:textSize="@dimen/font_size_10" />
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
......
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