Commit 1afd1821 authored by sheteng's avatar sheteng

分享落地页

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