Commit f0833086 authored by wanglei's avatar wanglei

...

parent 3b319ff5
package com.base.locationsharewhite.location
import com.base.locationsharewhite.GlobalConfig
import com.base.locationsharewhite.helper.AESHelper
import com.base.locationsharewhite.helper.ReportUtils.doPost
import com.base.locationsharewhite.utils.AppPreferences
......@@ -32,9 +33,9 @@ object LocationLoginUtils {
private const val DATA_KEY = "data"
private val url by lazy {
val pkg = AppConfig.packageName
val pkg = GlobalConfig.PACKAGE_NAME
val url = StringBuilder(
"${AppConfig.apiUrl}/dingwei/${pkg.filter { it.isLowerCase() }.substring(4, 9)}v"
"${GlobalConfig.URL_API}/dingwei/${pkg.filter { it.isLowerCase() }.substring(4, 9)}v"
)
url.append("?pkg=$pkg")
url.toString()
......
package com.base.locationsharewhite.location
import com.base.locationsharewhite.GlobalConfig
import com.base.locationsharewhite.bean.ViewerBean
import com.base.locationsharewhite.bean.ViewingBean
import com.base.locationsharewhite.helper.AESHelper
......@@ -23,9 +24,9 @@ object LocationShareListUtils {
* 分享关系列表
*/
private val url by lazy {
val pkg = AppConfig.packageName
val pkg = GlobalConfig.PACKAGE_NAME
val url = StringBuilder(
"${AppConfig.apiUrl}/dingwei/${pkg.filter { it.isLowerCase() }.substring(4, 9)}ac"
"${GlobalConfig.URL_API}/dingwei/${pkg.filter { it.isLowerCase() }.substring(4, 9)}ac"
)
url.append("?pkg=$pkg")
url.toString()
......@@ -90,9 +91,9 @@ object LocationShareListUtils {
* 分享关系列表
*/
private val deleteUrl by lazy {
val pkg = AppConfig.packageName
val pkg = GlobalConfig.PACKAGE_NAME
val url = StringBuilder(
"${AppConfig.apiUrl}/dingwei/${pkg.filter { it.isLowerCase() }.substring(4, 9)}p"
"${GlobalConfig.URL_API}/dingwei/${pkg.filter { it.isLowerCase() }.substring(4, 9)}p"
)
url.append("?pkg=$pkg")
url.toString()
......
package com.base.locationsharewhite.location
import com.base.locationsharewhite.GlobalConfig
import com.base.locationsharewhite.helper.AESHelper
import com.base.locationsharewhite.helper.ReportUtils
import com.base.locationsharewhite.location.LocationLoginUtils.extractData
......@@ -23,9 +24,9 @@ object LocationShareUtils {
* 分享位置接口
*/
private val url by lazy {
val pkg = AppConfig.packageName
val pkg = GlobalConfig.PACKAGE_NAME
val url = StringBuilder(
"${AppConfig.apiUrl}/dingwei/${pkg.filter { it.isLowerCase() }.substring(4, 9)}m"
"${GlobalConfig.URL_API}/dingwei/${pkg.filter { it.isLowerCase() }.substring(4, 9)}m"
)
url.append("?pkg=$pkg")
url.toString()
......
package com.base.locationsharewhite.location
import com.base.locationsharewhite.GlobalConfig
import com.base.locationsharewhite.helper.AESHelper
import com.base.locationsharewhite.helper.ReportUtils
import com.base.locationsharewhite.utils.LogEx
......@@ -16,9 +17,9 @@ object LocationStatusUtils {
* 改变别人是否可以看我的状态接口
*/
private val url by lazy {
val pkg = AppConfig.packageName
val pkg = GlobalConfig.PACKAGE_NAME
val url = StringBuilder(
"${AppConfig.apiUrl}/dingwei/${pkg.filter { it.isLowerCase() }.substring(4, 9)}f"
"${GlobalConfig.URL_API}/dingwei/${pkg.filter { it.isLowerCase() }.substring(4, 9)}f"
)
url.append("?pkg=$pkg")
url.toString()
......
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