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
b891f0ab
Commit
b891f0ab
authored
May 27, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
c4b7dd6a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
20 deletions
+7
-20
build.gradle
GoodMoney/app/build.gradle
+0
-2
YyzManager.kt
...p/src/main/java/com/mints/goodmoney/manager/YyzManager.kt
+3
-15
MobileLoginActivity.kt
...a/com/mints/goodmoney/ui/activitys/MobileLoginActivity.kt
+1
-1
WxLoginActivity.kt
.../java/com/mints/goodmoney/ui/activitys/WxLoginActivity.kt
+1
-1
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+2
-1
No files found.
GoodMoney/app/build.gradle
View file @
b891f0ab
...
...
@@ -356,8 +356,6 @@ dependencies {
implementation
(
name:
'mduisdk_v3.1.0.18_support_msa_1.0.23'
,
ext:
'aar'
)
implementation
'com.tencent.tbs.tbssdk:sdk:43903'
//动态图依赖
implementation
'pl.droidsonroids.gif:android-gif-drawable:1.2.15'
// //芒果联盟
// implementation 'com.openppeace.mgmob:mgmob:1.3.5-alpha6'//MGMob
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/YyzManager.kt
View file @
b891f0ab
...
...
@@ -14,22 +14,10 @@ object YyzManager {
private
const
val
KEY
=
"37e179d05b23b0a"
private
const
val
APPID
=
"550"
fun
initYyz
(
appActivity
:
Application
)
{
fun
initYyz
()
{
val
context
=
MintsApplication
.
getContext
()
//当用户登陆了且权限具备了后执行初始化操作
AdManager
.
getInstance
(
appActivity
).
init
(
appActivity
,
APPID
,
UserManager
.
getInstance
().
userID
,
KEY
,
object
:
CommonCallBack
<
Any
?>
{
override
fun
onSuccess
(
response
:
String
)
{
//初始化成功
Log
.
e
(
"hyw"
,
"init onSuccess:$response"
)
}
override
fun
onFailure
(
response
:
String
)
{
//初始化失败
Log
.
e
(
"hyw"
,
"init onFailure:$response"
)
}
})
}
fun
initYyz
(
appActivity
:
FragmentActivity
)
{
//当用户登陆了且权限具备了后执行初始化操作
AdManager
.
getInstance
(
appActivity
).
init
(
appActivity
,
APPID
,
UserManager
.
getInstance
().
userID
,
KEY
,
object
:
CommonCallBack
<
Any
?>
{
AdManager
.
getInstance
(
context
).
init
(
context
,
APPID
,
UserManager
.
getInstance
().
userID
,
KEY
,
object
:
CommonCallBack
<
Any
?>
{
override
fun
onSuccess
(
response
:
String
)
{
//初始化成功
Log
.
e
(
"hyw"
,
"init onSuccess:$response"
)
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/MobileLoginActivity.kt
View file @
b891f0ab
...
...
@@ -94,7 +94,7 @@ class MobileLoginActivity : BaseActivity(), LoginView, View.OnClickListener {
try
{
// 登录成功初始化鱼玩盒子userid
YwhzManager
.
init
(
baseApplication
)
YyzManager
.
initYyz
(
baseApplication
)
YyzManager
.
initYyz
()
}
catch
(
e
:
Exception
)
{
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/WxLoginActivity.kt
View file @
b891f0ab
...
...
@@ -118,7 +118,7 @@ class WxLoginActivity : BaseActivity()
try
{
// 登录成功初始化鱼玩盒子userid
YwhzManager
.
init
(
baseApplication
)
YyzManager
.
initYyz
(
baseApplication
)
YyzManager
.
initYyz
()
}
catch
(
e
:
Exception
)
{
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
b891f0ab
...
...
@@ -1014,7 +1014,6 @@ class MyFragment : BaseFragment(),
readyGo
(
WxLoginActivity
::
class
.
java
)
return
}
YyzManager
.
initYyz
(
requireActivity
())
YyzManager
.
openYyzTask
(
requireActivity
())
}
Constant
.
HOT_ACTIVITY_CAICY
->
{
...
...
@@ -1237,6 +1236,8 @@ class MyFragment : BaseFragment(),
// 登录成功的用户初始化鱼丸盒子
if
(
userManager
.
userIsLogin
())
{
YwhzManager
.
init
(
baseApplication
)
YyzManager
.
initYyz
()
}
}
...
...
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