Commit ee6410e0 authored by wanglei's avatar wanglei

[归因]归因

parent 696c0bd9
...@@ -14,12 +14,12 @@ object GlobalConfig { ...@@ -14,12 +14,12 @@ object GlobalConfig {
/** /**
* Url Event 上报接口 * Url Event 上报接口
*/ */
const val URL_EVENT = "https://rp.danehyjudydanehy1310.xyz" const val URL_EVENT = "https://rp.jocoachers.xyz"
/** /**
* Url Api 业务接口 * Url Api 业务接口
*/ */
const val URL_API = "https://api.danehyjudydanehy1310.xyz" const val URL_API = "https://api.jocoachers.xyz"
/** /**
* Url Privacy 隐私链接 * Url Privacy 隐私链接
...@@ -34,7 +34,7 @@ object GlobalConfig { ...@@ -34,7 +34,7 @@ object GlobalConfig {
/** /**
* Key Aes 加密key * Key Aes 加密key
*/ */
const val KEY_AES = "iyx3r5121sg6wtc9" const val KEY_AES = "pnolf67zqg1i5hu8"
/** /**
* Key solar 归因key * Key solar 归因key
......
...@@ -179,16 +179,16 @@ class MyApplication : Application() { ...@@ -179,16 +179,16 @@ class MyApplication : Application() {
private fun initAppConfig() { private fun initAppConfig() {
//初始化sp的配置
NewComUtils.parseConfigBean(spConfig)
AdjustUtils.initAdjust(this)
NewComUtils.requestCfgCallBackMap.put("changeTimer") { NewComUtils.requestCfgCallBackMap.put("changeTimer") {
LogEx.logDebug(TAG, "requestCfgCallBackMap changeTimer") LogEx.logDebug(TAG, "requestCfgCallBackMap changeTimer")
changeTimer() changeTimer()
} }
//初始化sp的配置
NewComUtils.parseConfigBean(spConfig)
AdjustUtils.initAdjust(this)
InstallHelps.init { InstallHelps.init {
NewComUtils.requestCfg() NewComUtils.requestCfg()
} }
......
...@@ -24,7 +24,7 @@ object AdjustUtils { ...@@ -24,7 +24,7 @@ object AdjustUtils {
fun getUserSource(): String { fun getUserSource(): String {
if (BuildConfig.DEBUG) { if (BuildConfig.DEBUG) {
return "origin" return "channel"
} }
var source = "origin" var source = "origin"
......
...@@ -68,9 +68,9 @@ object NewComUtils { ...@@ -68,9 +68,9 @@ object NewComUtils {
"&aid=${AppPreferences.getInstance().getString("uuid", "")}" + "&aid=${AppPreferences.getInstance().getString("uuid", "")}" +
"&source=${getUserSource()}" "&source=${getUserSource()}"
if (BuildConfig.DEBUG) { // if (BuildConfig.DEBUG) {
s = "$s&mode=4" // s = "$s&mode=4"
} // }
s s
// mode =3 google mode=2 facebook mode=1 自然,mode=4 测试 // mode =3 google mode=2 facebook mode=1 自然,mode=4 测试
// &mode=3 // &mode=3
...@@ -173,6 +173,7 @@ object NewComUtils { ...@@ -173,6 +173,7 @@ object NewComUtils {
//配置 //配置
ConfigBean.configBean = configBean ConfigBean.configBean = configBean
LogEx.logDebug(TAG, "test=${configBean.test}")
//广告 //广告
// AdConfigBean.adsConfigBean = configBean.adConfigBean // AdConfigBean.adsConfigBean = configBean.adConfigBean
......
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