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
3555a778
Commit
3555a778
authored
Jun 29, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化穿山甲
parent
811afb2a
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
103 deletions
+27
-103
open_ad_sdk.aar
highgold/app/libs/open_ad_sdk.aar
+0
-0
TTBannerManager.java
...main/java/com/mints/highgold/manager/TTBannerManager.java
+0
-16
TTNativeExpressManager.java
...va/com/mints/highgold/manager/TTNativeExpressManager.java
+0
-16
WxLoginPresenter.java
...a/com/mints/highgold/mvp/presenters/WxLoginPresenter.java
+0
-12
WxLoginActivity.java
...java/com/mints/highgold/ui/activitys/WxLoginActivity.java
+0
-32
VersusFragment.java
...n/java/com/mints/highgold/ui/fragment/VersusFragment.java
+27
-27
No files found.
highgold/app/libs/open_ad_sdk.aar
View file @
3555a778
No preview for this file type
highgold/app/src/main/java/com/mints/highgold/manager/TTBannerManager.java
View file @
3555a778
...
...
@@ -417,21 +417,5 @@ public class TTBannerManager {
ad
.
setDislikeDialog
(
dislikeDialog
);
return
;
}
//使用默认模板中默认dislike弹出样式
ad
.
setDislikeCallback
((
Activity
)
context
,
new
TTAdDislike
.
DislikeInteractionCallback
()
{
@Override
public
void
onSelected
(
int
position
,
String
value
)
{
// showToast("点击 " + value);
//用户选择不喜欢原因后,移除广告展示
if
(
frameLayout
!=
null
)
{
frameLayout
.
removeAllViews
();
}
}
@Override
public
void
onCancel
()
{
// showToast("点击取消 ");
}
});
}
}
highgold/app/src/main/java/com/mints/highgold/manager/TTNativeExpressManager.java
View file @
3555a778
...
...
@@ -249,21 +249,5 @@ public class TTNativeExpressManager {
ad
.
setDislikeDialog
(
dislikeDialog
);
return
;
}
//使用默认模板中默认dislike弹出样式
ad
.
setDislikeCallback
((
Activity
)
context
,
new
TTAdDislike
.
DislikeInteractionCallback
()
{
@Override
public
void
onSelected
(
int
position
,
String
value
)
{
// showToast("点击 " + value);
//用户选择不喜欢原因后,移除广告展示
if
(
frameLayout
!=
null
)
{
frameLayout
.
removeAllViews
();
}
}
@Override
public
void
onCancel
()
{
// showToast("点击取消 ");
}
});
}
}
highgold/app/src/main/java/com/mints/highgold/mvp/presenters/WxLoginPresenter.java
View file @
3555a778
...
...
@@ -36,10 +36,6 @@ public class WxLoginPresenter extends BasePresenter<WxLoginView> {
view
.
showLoading
(
"加载中..."
);
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
// vo.put("mobile", mobile);
// vo.put("smsCode", smsCode);
// vo.put("code", imgCode);
// vo.put("codeId", codeId);
try
{
vo
.
put
(
"shumeiId"
,
ShumeiManager
.
getInstance
().
getShumeiDeviceId
());
}
catch
(
Exception
e
)
{
...
...
@@ -80,14 +76,6 @@ public class WxLoginPresenter extends BasePresenter<WxLoginView> {
consumer
=
data
.
getConsumer
();
if
(
consumer
!=
null
)
{
// // 云端是否有游戏信息 有则用云端覆盖
// String gameInfo = consumer.getGameInfo();
// if (!TextUtils.isEmpty(gameInfo)) {
// spUtil.putString(Constant.LIEBAO_GAME_INFO, gameInfo);
//
// LiebaoManager.getInstance().clearCmGameAccount();
// LiebaoManager.getInstance().restoreCmGameAccount(gameInfo);
// }
saveTerminalInfo
(
context
);
}
view
.
loginSuc
();
...
...
highgold/app/src/main/java/com/mints/highgold/ui/activitys/WxLoginActivity.java
View file @
3555a778
...
...
@@ -305,38 +305,6 @@ public class WxLoginActivity extends BaseActivity implements WxLoginView, OnLogi
}
}
// public static final MediaType JSON = MediaType.parse("application/json; charset=utf-8");
// private void getPhoneNum(String token) {
// new Thread(){
// @Override
// public void run() {
// super.run();
// try {
// OkHttpClient client = new OkHttpClient();
// JSONObject bodyJson = new JSONObject();
// bodyJson.put("token",token);
// String body = bodyJson.toString();
// RequestBody requestBody = RequestBody.create(JSON,body);
// Request request = new Request.Builder().url(Constants.verifyUrl).post(requestBody).build();
// Response response = client.newCall(request).execute();
// String responseData = response.body().string();
// Log.d(TAG,"response :"+responseData);
// JSONObject responseJson = new JSONObject(responseData);
// String phone = responseJson.optString("phone");
// Message message = handler.obtainMessage();
// message.what = 0;
// message.obj = phone;
// phoneNum = phone;
// handler.sendMessage(message);
// } catch (Throwable e) {
// Message message = handler.obtainMessage();
// message.what = 1;
// handler.sendMessage(message);
// }
// }
// }.start();
// }
@Override
public
void
loginSuc
()
{
// UserManager.getInstance().userLogout();
...
...
highgold/app/src/main/java/com/mints/highgold/ui/fragment/VersusFragment.java
View file @
3555a778
...
...
@@ -1041,34 +1041,34 @@ public class VersusFragment extends BaseFragment
viewVersusWeixin
.
setVisibility
(
View
.
GONE
);
}
// //绑定手机号 Complete 0-未完成 1-完成 2-领取
// int challengeMobileComplete = data.getChallenge_mobile_complete();
// if (challengeMobileComplete == 0) {
// llVersusMobile.setVisibility(View.VISIBLE);
// viewVersusMobile.setVisibility(View.VISIBLE);
// tvVersusMobileGold.setText("+" + data.getChallenge_mobile_coin());
//
//// if (!userManager.userIsLogin()) {
//// tvVersusMobile.setText("去完成");
//// tvVersusMobile.setBackground(getResources().getDrawable(R.drawable.shape_main_water));
////
//// } else {
//// tvVersusMobile.setText("立即领取");
//// tvVersusMobile.setBackground(getResources().getDrawable(R.drawable.shape_tv_gold));
////
//// }
//绑定手机号 Complete 0-未完成 1-完成 2-领取
int
challengeMobileComplete
=
data
.
getChallenge_mobile_complete
();
if
(
challengeMobileComplete
==
0
)
{
llVersusMobile
.
setVisibility
(
View
.
VISIBLE
);
viewVersusMobile
.
setVisibility
(
View
.
VISIBLE
);
tvVersusMobileGold
.
setText
(
"+"
+
data
.
getChallenge_mobile_coin
());
// if (!userManager.userIsLogin()) {
// tvVersusMobile.setText("去完成");
// tvVersusMobile.setBackground(getResources().getDrawable(R.drawable.shape_main_water));
// } else if (challengeMobileComplete == 1) {
// llVersusMobile.setVisibility(View.VISIBLE);
// viewVersusMobile.setVisibility(View.VISIBLE);
// tvVersusMobileGold.setText("+" + data.getChallenge_mobile_coin());
//
// } else {
// tvVersusMobile.setText("立即领取");
// tvVersusMobile.setBackground(getResources().getDrawable(R.drawable.shape_tv_gold));
// } else {
// llVersusMobile.setVisibility(View.GONE);
// viewVersusMobile.setVisibility(View.GONE);
//
// }
tvVersusMobile
.
setText
(
"去完成"
);
tvVersusMobile
.
setBackground
(
getResources
().
getDrawable
(
R
.
drawable
.
shape_main_water
));
}
else
if
(
challengeMobileComplete
==
1
)
{
llVersusMobile
.
setVisibility
(
View
.
VISIBLE
);
viewVersusMobile
.
setVisibility
(
View
.
VISIBLE
);
tvVersusMobileGold
.
setText
(
"+"
+
data
.
getChallenge_mobile_coin
());
tvVersusMobile
.
setText
(
"立即领取"
);
tvVersusMobile
.
setBackground
(
getResources
().
getDrawable
(
R
.
drawable
.
shape_tv_gold
));
}
else
{
llVersusMobile
.
setVisibility
(
View
.
GONE
);
viewVersusMobile
.
setVisibility
(
View
.
GONE
);
}
//首次提现 Complete 0-未完成 1-完成 2-领取
...
...
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