Commit 868ee1e3 authored by mengcuiguang's avatar mengcuiguang

添加分享内容

parent ddb9925d
......@@ -2,6 +2,9 @@ package com.mints.goodmoney.common
import android.os.Environment
import com.mints.goodmoney.BuildConfig
import com.mints.goodmoney.MintsApplication
import com.mints.goodmoney.manager.UserManager
import com.mints.library.utils.CommonUtils
object Constant {
......@@ -89,13 +92,9 @@ object Constant {
const val CARRIER_OFFLINE_DOUBLE = "OFFLINE_DOUBLE" //离线收益
const val CARRIER_CHALLENGE_CARD = "CHALLENGE_CARD" //刮刮乐
const val CARRIER_GAME = "GAME" //游戏
const val CARRIER_ONLINE_INCOME = "ONLINE_INCOME" //在线收益
const val CARRIER_GAME_CHALLENGE_TIME = "GAME_CHALLENGE_TIME" //任务赚游戏
const val CARRIER_HOMEWATER = "HOMEWATER" //喝水
const val CARRIER_DRAWCASH = "CARRIER_DRAWCASH" //提现
const val CARRIER_WALK = "WALK" //走路
const val CARRIER_WALK_BUBBLE = "WALK_BUBBLE" //走路汽泡
const val CARRIER_CHALLENGE_SHAREFRIEND = "CHALLENGE_SHAREFRIEND" //每日分享
const val CARRIER_NEW_USER = "CARRIER_NEW_USER" //新用户红包
const val CARRIER_FRIENDS = "CARRIER_FRIENDS" //邀请好友
......@@ -137,4 +136,10 @@ object Constant {
const val HOT_ACTIVITY_CARD = "card"
// 打开激活
const val FIRST_DEVICE_FLAG = "first_device_flag"
// share
const val SHARE_TITLE = "当下流行的赚钱模式,边看边玩边赚钱"
var SHARE_CONTENT = "邀请码【${UserManager.getInstance().codeID}】,共享新模式,快来加入跟我一起赚钱吧"
var SHARE_URL: String = BuildConfig.MainIp+ "share/shareFriend.html?channel=" + CommonUtils.getAppMetaData(MintsApplication.getContext(), "CHANNEL_NAME")
}
\ No newline at end of file
......@@ -144,9 +144,9 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
R.id.tvAwardNext -> {
when (carrierType) {
// 只有看视频才能领金币
Constant.CARRIER_OFFLINE_DOUBLE, Constant.CARRIER_SIGNIN_HOMEPAGE_CARD, Constant.CARRIER_CHALLENGE_TURN,
Constant.CARRIER_CHALLENGE_CARD, Constant.CARRIER_VERSUS_VIDEO, Constant.CARRIER_WALK_BUBBLE,
Constant.CARRIER_CHALLENGE_TURN, Constant.CARRIER_CHALLENGE_CARD -> {
Constant.CARRIER_OFFLINE_DOUBLE, Constant.CARRIER_SIGNIN_HOMEPAGE_CARD,
Constant.CARRIER_CHALLENGE_TURN,Constant.CARRIER_CHALLENGE_CARD,
Constant.CARRIER_VERSUS_VIDEO, Constant.CARRIER_WALK_BUBBLE -> {
// awardVedio()
finish()
}
......
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