fix:1、接入合作方的sdk。2、支付逻辑接入sdk中的接口
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.tool.countrycode;
|
||||
import android.app.Activity;
|
||||
import java.util.Locale;
|
||||
public class AcquireCountryCode {
|
||||
// 获取国家码
|
||||
public static String getCountryCode()
|
||||
{
|
||||
Locale locale = Locale.getDefault();
|
||||
return locale.getCountry();
|
||||
}
|
||||
|
||||
public static String getCountryCode3() {
|
||||
Locale currentLocale = Locale.getDefault();
|
||||
return currentLocale.getISO3Country();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user