Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_goodmoney
Commits
5dd47928
Commit
5dd47928
authored
Dec 12, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
882d220d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
71 additions
and
18 deletions
+71
-18
build.gradle
GoodMoney/app/build.gradle
+1
-1
xrsdk-release_tbs.aar
GoodMoney/app/libs/xrsdk-release_tbs.aar
+0
-0
AppConfig.java
...p/src/main/java/com/mints/goodmoney/common/AppConfig.java
+5
-0
SceneManager.kt
...src/main/java/com/mints/goodmoney/manager/SceneManager.kt
+13
-0
DrawcashActivity.kt
...java/com/mints/goodmoney/ui/activitys/DrawcashActivity.kt
+4
-3
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+47
-8
AESUtils.java
...app/src/main/java/com/mints/goodmoney/utils/AESUtils.java
+1
-6
No files found.
GoodMoney/app/build.gradle
View file @
5dd47928
...
...
@@ -180,7 +180,7 @@ dependencies {
// 三方接入
// leakcanary
debugImplementation
'com.squareup.leakcanary:leakcanary-android:2.4'
//
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.4'
// 极光推送
implementation
'cn.jiguang.sdk:jpush:3.6.6'
implementation
'cn.jiguang.sdk:jcore:2.3.8'
...
...
GoodMoney/app/libs/xrsdk-release_tbs.aar
View file @
5dd47928
No preview for this file type
GoodMoney/app/src/main/java/com/mints/goodmoney/common/AppConfig.java
View file @
5dd47928
...
...
@@ -23,6 +23,11 @@ public class AppConfig {
*/
public
static
boolean
app_black_flag
=
false
;
/**
* 趣步赚成功标记
*/
public
static
boolean
scene_flag
=
false
;
/**
* 先展示枫岚视频
*/
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/SceneManager.kt
View file @
5dd47928
package
com.mints.goodmoney.manager
import
android.app.Activity
import
android.text.TextUtils
import
com.fly.scenemodule.SceneUtil
import
com.fly.scenemodule.model.GDTInfo
import
com.fly.scenemodule.model.TTInfo
import
com.mints.goodmoney.MintsApplication
import
com.mints.goodmoney.common.AppConfig
/**
* 描述:聚乐云SDK
...
...
@@ -37,4 +40,14 @@ object SceneManager {
gdtInfo
.
GDT_InteractionId
=
YlhAdManager
.
YLH_AD_INTERSTITIALAD_JULEYUN
SceneUtil
.
initGDTConfig
(
gdtInfo
)
}
/**
* 账号同步
*/
fun
signIn
(
activity
:
Activity
)
{
if
(!
TextUtils
.
isEmpty
(
UserManager
.
getInstance
().
userID
))
{
SceneUtil
.
signIn
(
activity
,
SCENE_CHANNEL_Id
,
UserManager
.
getInstance
().
userID
,
MintsApplication
.
OAID
)
AppConfig
.
scene_flag
=
true
}
}
}
\ No newline at end of file
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/DrawcashActivity.kt
View file @
5dd47928
...
...
@@ -269,13 +269,14 @@ class DrawcashActivity : BaseActivity(),
* 设置视频权重
*/
private
fun
initAdWeight
(
data
:
DrawcashBean
.
VedioRules
)
{
//
vedioAdingManager?.initAdWeight(data.csJ_VEDIO, data.ylH_VEDIO, data.sdhZ_VEDIO, data.fL_VEDIO)
vedioAdingManager
?.
initAdWeight
(
data
.
csJ_VEDIO
,
data
.
ylH_VEDIO
,
data
.
sdhZ_VEDIO
)
LogUtil
.
d
(
TAG
,
"提现权重值:csjWeight:${data.csJ_VEDIO} ylhWeight:${data.ylH_VEDIO} sdhzWeight:${data.sdhZ_VEDIO}"
)
vedioAdingManager
?.
initAdWeight
(
data
.
csJ_VEDIO
,
data
.
ylH_VEDIO
,
data
.
sdhZ_VEDIO
,
data
.
fL_VEDIO
)
//
vedioAdingManager?.initAdWeight(data.csJ_VEDIO, data.ylH_VEDIO, data.sdhZ_VEDIO)
LogUtil
.
d
(
TAG
,
"提现权重值:csjWeight:${data.csJ_VEDIO} ylhWeight:${data.ylH_VEDIO} sdhzWeight:${data.sdhZ_VEDIO}
flWeight:${data.fL_VEDIO}
"
)
// 广告视频数
AppConfig
.
csjVedioAdCount
=
10
AppConfig
.
ylhAdCount
=
10
AppConfig
.
wnVedioAdCount
=
10
AppConfig
.
flVedioAdCount
=
10
}
/**
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
5dd47928
package
com.mints.goodmoney.ui.fragment
import
android.Manifest
import
android.annotation.SuppressLint
import
android.content.ClipData
import
android.content.ClipboardManager
...
...
@@ -9,6 +10,7 @@ import android.text.TextUtils
import
android.view.View
import
android.widget.AdapterView
import
androidx.recyclerview.widget.DividerItemDecoration
import
cn.sharesdk.wechat.friends.Wechat
import
com.component.dly.xzzq_ywsdk.YwSDK_WebActivity.Companion.open
import
com.fly.scenemodule.SceneUtil
import
com.mints.goodmoney.BuildConfig
...
...
@@ -39,6 +41,7 @@ import com.mints.library.utils.GlideUtils
import
com.mints.library.utils.nodoubleclick.AntiShake
import
com.scwang.smartrefresh.layout.api.RefreshLayout
import
com.scwang.smartrefresh.layout.listener.OnRefreshListener
import
com.tbruyelle.rxpermissions.RxPermissions
import
kotlinx.android.synthetic.main.fragment_main_my.*
import
kotlinx.android.synthetic.main.header_layout.*
import
kotlinx.android.synthetic.main.item_fragment_main_my_clock.*
...
...
@@ -642,16 +645,54 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
// 消费变现猫事件
}
Constant
.
HOT_ACTIVITY_CAICY
->
{
// 猜成语
SceneUtil
.
cCy
(
requireActivity
())
RxPermissions
(
requireActivity
())
.
request
(
Manifest
.
permission
.
READ_PHONE_STATE
)
.
subscribe
{
granted
:
Boolean
->
if
(
granted
)
{
if
(
AppConfig
.
scene_flag
)
{
// 猜成语
SceneUtil
.
cCy
(
requireActivity
())
}
else
{
SceneManager
.
signIn
(
requireActivity
())
}
}
else
{
showMissingPermissionDialog
(
"设备"
)
}
}
}
Constant
.
HOT_ACTIVITY_DATI
->
{
// 答题
SceneUtil
.
daTi
(
requireActivity
())
RxPermissions
(
requireActivity
())
.
request
(
Manifest
.
permission
.
READ_PHONE_STATE
)
.
subscribe
{
granted
:
Boolean
->
if
(
granted
)
{
if
(
AppConfig
.
scene_flag
)
{
// 答题
SceneUtil
.
daTi
(
requireActivity
())
}
else
{
SceneManager
.
signIn
(
requireActivity
())
}
}
else
{
showMissingPermissionDialog
(
"设备"
)
}
}
}
Constant
.
HOT_ACTIVITY_SCRAPPAGE
->
{
// 刮刮乐
SceneUtil
.
scrapPage
(
requireActivity
())
RxPermissions
(
requireActivity
())
.
request
(
Manifest
.
permission
.
READ_PHONE_STATE
)
.
subscribe
{
granted
:
Boolean
->
if
(
granted
)
{
if
(
AppConfig
.
scene_flag
)
{
// 刮刮乐
SceneUtil
.
scrapPage
(
requireActivity
())
}
else
{
SceneManager
.
signIn
(
requireActivity
())
}
}
else
{
showMissingPermissionDialog
(
"设备"
)
}
}
}
Constant
.
HOT_ACTIVITY_BOOK
->
{
// 小说
...
...
@@ -858,8 +899,6 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
// 聚乐云初始化
SceneManager
.
initScene
()
// 同步账户
SceneUtil
.
signIn
(
requireActivity
(),
SceneManager
.
SCENE_CHANNEL_Id
,
userManager
.
userID
,
MintsApplication
.
OAID
)
}
private
fun
initView
()
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/utils/AESUtils.java
View file @
5dd47928
...
...
@@ -94,11 +94,6 @@ public class AESUtils {
// System.out.println("decrypted message is below :");
// System.out.println(MD5.GetMD5Code("meijie_2016").substring(8, 24));
System
.
out
.
println
(
detrypt
(
"5EBue8TMfYS2P8YAZUyJUKnYvTVEblnJMwC00vC1yZHjvqq6Ws4TeaXQ+7l+iwdzoQNi2yJ9CLrG\n"
+
"cfQlCjaAbr5gmLokexHida7yLofB7V5ItaxTGlXyxK3CH+Wr/lvbWKmP8YROCrtzrreqP8svuf0M\n"
+
"AzKbOnPhoURvpfVS5di/dk3chtujIqC74xd5XpLJfHiXQadEX+12zq+IXa0xIWezTHjL6cJBTN6y\n"
+
"xg5w6+ey7EYzEdJ118HaSTr1tLu7AkxguXJez9QxhB9nifRBvgl7tlY0oL20+yGGZ3WgR/CmWh9u\n"
+
"PjEy0eB3NgmNd8SRmImXDYOQDMJqxa5AUMKjQkQ/NmrDLBdRO+9zy5Ujv7YL1KVoUmmxeH5EVPZR\n"
+
"nV+E"
,
"abcdnnnnnn123456"
));
System
.
out
.
println
(
MD5
.
GetMD5Code
(
"goodmoney_2020"
).
substring
(
8
,
24
));
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment