Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_highgold
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_highgold
Commits
4f097ce6
Commit
4f097ce6
authored
Apr 23, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.0.2发版
parent
22cbac9b
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
43 additions
and
41 deletions
+43
-41
InsertScreenAdManager.java
...com/mints/highgold/ad/inscreen/InsertScreenAdManager.java
+1
-1
GamePresenter.java
...java/com/mints/highgold/mvp/presenters/GamePresenter.java
+1
-0
LoanPresenter.java
...java/com/mints/highgold/mvp/presenters/LoanPresenter.java
+1
-1
MyPresenter.java
...n/java/com/mints/highgold/mvp/presenters/MyPresenter.java
+1
-1
VersusPresenter.java
...va/com/mints/highgold/mvp/presenters/VersusPresenter.java
+1
-1
GsonConverterFactory.java
...ain/java/com/mints/highgold/net/GsonConverterFactory.java
+1
-0
LoanService.java
...app/src/main/java/com/mints/highgold/net/LoanService.java
+25
-25
RedboxActivity.java
.../java/com/mints/highgold/ui/activitys/RedboxActivity.java
+5
-1
MainFragment.java
...ain/java/com/mints/highgold/ui/fragment/MainFragment.java
+0
-4
MyFragment.java
.../main/java/com/mints/highgold/ui/fragment/MyFragment.java
+7
-7
No files found.
highgold/app/src/main/java/com/mints/highgold/ad/inscreen/InsertScreenAdManager.java
View file @
4f097ce6
...
...
@@ -30,7 +30,7 @@ public class InsertScreenAdManager {
}
public
void
showInsertScreenAd
(
String
carrierType
)
{
//
initInsertScreenAd(carrierType);
initInsertScreenAd
(
carrierType
);
}
public
void
ondestory
()
{
...
...
highgold/app/src/main/java/com/mints/highgold/mvp/presenters/GamePresenter.java
View file @
4f097ce6
...
...
@@ -110,6 +110,7 @@ public class GamePresenter extends BasePresenter<GameView> {
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
String
uuid
=
new
DeviceUuidFactory
(
loanApplication
).
getDeviceUuid
().
toString
();
vo
.
put
(
"device"
,
uuid
);
vo
.
put
(
"uid"
,
UserManager
.
getInstance
().
getUserID
());
// vo.put("seq", MD5.GetMD5Code(DevicesUtil.getPesudoUniqueID()+System.currentTimeMillis()));
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
visitorlogin
(
vo
),
...
...
highgold/app/src/main/java/com/mints/highgold/mvp/presenters/LoanPresenter.java
View file @
4f097ce6
...
...
@@ -460,7 +460,7 @@ public class LoanPresenter extends BasePresenter<LoanView> {
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
uuid
=
new
DeviceUuidFactory
(
loanApplication
).
getDeviceUuid
().
toString
();
vo
.
put
(
"device"
,
uuid
);
// vo.put("seq", MD5.GetMD5Code(DevicesUtil.getPesudoUniqueID()+System.currentTimeMillis()
));
vo
.
put
(
"uid"
,
UserManager
.
getInstance
().
getUserID
(
));
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
visitorlogin
(
vo
),
new
BaseSubscriber
<
BaseResponse
<
UserBean
>>()
{
...
...
highgold/app/src/main/java/com/mints/highgold/mvp/presenters/MyPresenter.java
View file @
4f097ce6
...
...
@@ -178,7 +178,7 @@ public class MyPresenter extends BasePresenter<MyView> {
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
String
uuid
=
new
DeviceUuidFactory
(
loanApplication
).
getDeviceUuid
().
toString
();
vo
.
put
(
"device"
,
uuid
);
// vo.put("seq", MD5.GetMD5Code(DevicesUtil.getPesudoUniqueID() + System.currentTimeMillis()
));
vo
.
put
(
"uid"
,
UserManager
.
getInstance
().
getUserID
(
));
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
visitorlogin
(
vo
),
new
BaseSubscriber
<
BaseResponse
<
UserBean
>>()
{
...
...
highgold/app/src/main/java/com/mints/highgold/mvp/presenters/VersusPresenter.java
View file @
4f097ce6
...
...
@@ -378,7 +378,7 @@ public class VersusPresenter extends BasePresenter<VersusView> {
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
String
uuid
=
new
DeviceUuidFactory
(
loanApplication
).
getDeviceUuid
().
toString
();
vo
.
put
(
"device"
,
uuid
);
// vo.put("seq", MD5.GetMD5Code(DevicesUtil.getPesudoUniqueID() + System.currentTimeMillis()
));
vo
.
put
(
"uid"
,
UserManager
.
getInstance
().
getUserID
(
));
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
visitorlogin
(
vo
),
new
BaseSubscriber
<
BaseResponse
<
UserBean
>>()
{
...
...
highgold/app/src/main/java/com/mints/highgold/net/GsonConverterFactory.java
View file @
4f097ce6
...
...
@@ -160,6 +160,7 @@ public class GsonConverterFactory extends Converter.Factory {
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
String
uuid
=
new
DeviceUuidFactory
(
loanApplication
).
getDeviceUuid
().
toString
();
vo
.
put
(
"device"
,
uuid
);
vo
.
put
(
"uid"
,
UserManager
.
getInstance
().
getUserID
());
// vo.put("seq", MD5.GetMD5Code(DevicesUtil.getPesudoUniqueID()+System.currentTimeMillis()));
loanApplication
.
getLoanService
().
visitorlogin
(
vo
)
.
observeOn
(
AndroidSchedulers
.
mainThread
())
...
...
highgold/app/src/main/java/com/mints/highgold/net/LoanService.java
View file @
4f097ce6
...
...
@@ -476,32 +476,32 @@ public interface LoanService {
builder
.
interceptors
().
add
(
okHttpInterceptor
);
Retrofit
retrofit
;
if
(
BuildConfig
.
DEBUG
)
{
SPUtil
spUtil
=
SPUtil
.
getInstance
(
context
);
if
(
TextUtils
.
isEmpty
(
spUtil
.
getString
(
Constant
.
LOCAL_IP
)))
{
spUtil
.
putString
(
Constant
.
LOCAL_IP
,
"http://39.106.5.102:9082/api-p1/"
);
}
retrofit
=
new
Retrofit
.
Builder
()
.
client
(
builder
.
build
())
.
baseUrl
(
spUtil
.
getString
(
Constant
.
LOCAL_IP
))
.
addConverterFactory
(
GsonConverterFactory
.
create
())
.
addCallAdapterFactory
(
RxJavaCallAdapterFactory
.
create
())
.
build
();
}
else
{
retrofit
=
new
Retrofit
.
Builder
()
.
client
(
builder
.
build
())
.
baseUrl
(
BuildConfig
.
MainIp
)
.
addConverterFactory
(
GsonConverterFactory
.
create
())
.
addCallAdapterFactory
(
RxJavaCallAdapterFactory
.
create
())
.
build
();
}
// if (BuildConfig.DEBUG) {
// SPUtil spUtil = SPUtil.getInstance(context);
// if (TextUtils.isEmpty(spUtil.getString(Constant.LOCAL_IP))) {
// spUtil.putString(Constant.LOCAL_IP, "http://39.106.5.102:9082/api-p1/");
// }
// retrofit = new Retrofit.Builder()
// .client(builder.build())
// .baseUrl(spUtil.getString(Constant.LOCAL_IP))
// .addConverterFactory(GsonConverterFactory.create())
// .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
// .build();
// } else {
// retrofit = new Retrofit.Builder()
// .client(builder.build())
// .baseUrl(BuildConfig.MainIp)
// .addConverterFactory(GsonConverterFactory.create())
// .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
// .build();
// }
retrofit
=
new
Retrofit
.
Builder
()
.
client
(
builder
.
build
())
.
baseUrl
(
BuildConfig
.
MainIp
)
.
addConverterFactory
(
GsonConverterFactory
.
create
())
.
addCallAdapterFactory
(
RxJavaCallAdapterFactory
.
create
())
.
build
();
return
retrofit
.
create
(
LoanService
.
class
);
...
...
highgold/app/src/main/java/com/mints/highgold/ui/activitys/RedboxActivity.java
View file @
4f097ce6
...
...
@@ -160,8 +160,12 @@ public class RedboxActivity extends BaseActivity implements RedboxView {
protected
void
onResume
()
{
super
.
onResume
();
insertScreenAd
.
showInsertScreenAd
(
Constant
.
CARRIER_REDENVELOPE
);
if
(
tvRedboxOne
!=
null
)
{
if
(
AntiShake
.
check
(
tvRedboxOne
.
getId
()))
return
;
}
System
.
out
.
println
(
"mcg __ redbox onresume"
);
insertScreenAd
.
showInsertScreenAd
(
Constant
.
CARRIER_REDENVELOPE
);
redboxPresenter
.
getAllRedEnvelopeMsg
();
}
...
...
highgold/app/src/main/java/com/mints/highgold/ui/fragment/MainFragment.java
View file @
4f097ce6
...
...
@@ -407,10 +407,6 @@ public class MainFragment extends BaseFragment
Bundle
bundle
;
switch
(
view
.
getId
())
{
case
R
.
id
.
tv_fragment_main_whatgold
:
// 如何赚金币
// System.out.println("mcg __ getPesudoUniqueID:"+ DevicesUtil.getPesudoUniqueID());
// System.out.println("mcg __ getUUID:"+ DevicesUtil.getUUID());
// System.out.println("mcg __ googld device UUID:"+ new DeviceUuidFactory(getContext()).getDeviceUuid().toString());
readyGo
(
WhatGoldActivity
.
class
);
break
;
case
R
.
id
.
iv_fragment_main_putcard
:
// 补卡
...
...
highgold/app/src/main/java/com/mints/highgold/ui/fragment/MyFragment.java
View file @
4f097ce6
...
...
@@ -145,13 +145,13 @@ public class MyFragment extends BaseFragment
super
.
onResume
();
if
(
AppConfig
.
fragmentClickFlag
==
Constant
.
FRAGMENT_CLICK_MY
)
{
//应用商店上线隐藏广告
//
if (userManager.getAdShowFlag()) {
//
if (ttUtil != null && flMyTtbanner != null) {
//
ttUtil.getBannerInit(getContext(), TTAdManagerHolder.TT_AD_BANNER_ID_MY, flMyTtbanner, 370, 80);
//
}
//
} else {
//
flMyTtbanner.setVisibility(View.GONE);
//
}
if
(
userManager
.
getAdShowFlag
())
{
if
(
ttUtil
!=
null
&&
flMyTtbanner
!=
null
)
{
ttUtil
.
getBannerInit
(
getContext
(),
TTAdManagerHolder
.
TT_AD_BANNER_ID_MY
,
flMyTtbanner
,
370
,
80
);
}
}
else
{
flMyTtbanner
.
setVisibility
(
View
.
GONE
);
}
if
(!
TextUtils
.
isEmpty
(
userManager
.
getUserID
()))
{
myPresenter
.
getUserTaskMsg
(
false
);
...
...
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