Commit 1afd1821 authored by sheteng's avatar sheteng

分享落地页

parent 3fac8c07
...@@ -46,7 +46,7 @@ class KotlinDataAdapter<T> private constructor() : RecyclerView.Adapter<KotlinDa ...@@ -46,7 +46,7 @@ class KotlinDataAdapter<T> private constructor() : RecyclerView.Adapter<KotlinDa
* 设置数据 * 设置数据
*/ */
fun setData(lists: ArrayList<B>): Builder<B> { fun setData(lists: ArrayList<B>): Builder<B> {
adapter.mDatalist = lists adapter.mDatalist = lists
return this return this
} }
......
...@@ -120,18 +120,21 @@ object SysUtils { ...@@ -120,18 +120,21 @@ object SysUtils {
} }
fun initChannel(context: Context) { fun initChannel(context: Context) {
val channel = PackerNg.getChannel(context) if (SettingSPUtils.channel == 0) {
if (!channel.isNullOrBlank()) { val channel = PackerNg.getChannel(context)
SettingSPUtils.channel = when (channel) { if (!channel.isNullOrBlank()) {
"guanwang" -> 1 SettingSPUtils.channel = when (channel) {
"huawei" -> 2 "guanwang" -> 1
"xiaomi" -> 3 "huawei" -> 2
"vivo" -> 4 "xiaomi" -> 3
"yingyongbao" -> 5 "vivo" -> 4
"OPPO" -> 6 "yingyongbao" -> 5
"baiduzhushou" -> 7 "OPPO" -> 6
"wufan" -> 8 "baiduzhushou" -> 7
else -> 1 "wufan" -> 8
"share" -> 9
else -> 1
}
} }
} }
} }
......
...@@ -5,4 +5,5 @@ vivo ...@@ -5,4 +5,5 @@ vivo
yingyongbao yingyongbao
OPPO OPPO
baiduzhushou baiduzhushou
wufan wufan
\ No newline at end of file share
\ No newline at end of file
...@@ -38,5 +38,5 @@ object HttpConfig { ...@@ -38,5 +38,5 @@ object HttpConfig {
val MEMBER_CENTER = "/memberCenter" val MEMBER_CENTER = "/memberCenter"
//分享落地页 //分享落地页
val SHARE_URL = "http://ttspeed.saiqinkj.com/index_pc.html" val SHARE_URL = "http://ttspeed.saiqinkj.com/share.html"
} }
\ No newline at end of file
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