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
52a3949f
Commit
52a3949f
authored
Oct 13, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加微信分享,接口调试
parent
f75af1b4
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
36 additions
and
50 deletions
+36
-50
AndroidManifest.xml
GoodMoney/app/src/main/AndroidManifest.xml
+1
-1
supplierconfig.json
GoodMoney/app/src/main/assets/supplierconfig.json
+1
-1
LoanService.java
...pp/src/main/java/com/mints/goodmoney/net/LoanService.java
+3
-3
AwardActivity.kt
...in/java/com/mints/goodmoney/ui/activitys/AwardActivity.kt
+3
-7
AESUtils.java
...app/src/main/java/com/mints/goodmoney/utils/AESUtils.java
+1
-1
ForegroundOrBackground.java
...ava/com/mints/goodmoney/utils/ForegroundOrBackground.java
+24
-34
ShareSDK.xml
GoodMoney/shareSdkLib/src/main/assets/ShareSDK.xml
+3
-3
No files found.
GoodMoney/app/src/main/AndroidManifest.xml
View file @
52a3949f
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
<category
android:name=
"android.intent.category.DEFAULT"
/>
<category
android:name=
"android.intent.category.DEFAULT"
/>
<category
android:name=
"android.intent.category.BROWSABLE"
/>
<category
android:name=
"android.intent.category.BROWSABLE"
/>
<data
android:scheme=
"tencent11
09991028
"
/>
<data
android:scheme=
"tencent11
11016251
"
/>
</intent-filter>
</intent-filter>
</activity>
</activity>
<activity
<activity
...
...
GoodMoney/app/src/main/assets/supplierconfig.json
View file @
52a3949f
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
"appid"
:
"101365295"
"appid"
:
"101365295"
},
},
"yingyongbao"
:{
"yingyongbao"
:{
"appid"
:
"11
09991028
"
"appid"
:
"11
11016251
"
},
},
"baidu"
:{
"baidu"
:{
"appid"
:
"17859897"
"appid"
:
"17859897"
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/net/LoanService.java
View file @
52a3949f
...
@@ -56,7 +56,7 @@ public interface LoanService {
...
@@ -56,7 +56,7 @@ public interface LoanService {
*
*
* @return
* @return
*/
*/
@POST
(
"api/
consumer/
visitorlogin"
)
@POST
(
"api/visitorlogin"
)
Observable
<
BaseResponse
<
UserBean
>>
visitorlogin
(
@Body
Map
<
String
,
Object
>
vo
);
Observable
<
BaseResponse
<
UserBean
>>
visitorlogin
(
@Body
Map
<
String
,
Object
>
vo
);
/**
/**
...
@@ -104,7 +104,7 @@ public interface LoanService {
...
@@ -104,7 +104,7 @@ public interface LoanService {
*
*
* @return
* @return
*/
*/
@POST
(
"api/
consumer/
sendMobileCode"
)
@POST
(
"api/sendMobileCode"
)
Observable
<
BaseResponse
<
Object
>>
sendMobileCode
(
@Body
Map
<
String
,
Object
>
vo
);
Observable
<
BaseResponse
<
Object
>>
sendMobileCode
(
@Body
Map
<
String
,
Object
>
vo
);
/**
/**
...
@@ -112,7 +112,7 @@ public interface LoanService {
...
@@ -112,7 +112,7 @@ public interface LoanService {
*
*
* @return
* @return
*/
*/
@POST
(
"api/
consumer/
mobilelogin"
)
@POST
(
"api/mobilelogin"
)
Observable
<
BaseResponse
<
UserBean
>>
login
(
@Body
Map
<
String
,
Object
>
vo
);
Observable
<
BaseResponse
<
UserBean
>>
login
(
@Body
Map
<
String
,
Object
>
vo
);
/**
/**
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/AwardActivity.kt
View file @
52a3949f
...
@@ -293,18 +293,14 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
...
@@ -293,18 +293,14 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
mTimer
?.
setOnCountDownTimerListener
(
object
:
OnCountDownTimerListener
{
mTimer
?.
setOnCountDownTimerListener
(
object
:
OnCountDownTimerListener
{
override
fun
onTick
(
millisUntilFinished
:
Long
)
{
override
fun
onTick
(
millisUntilFinished
:
Long
)
{
if
(!
this
@AwardActivity
.
isFinishing
)
{
if
(!
this
@AwardActivity
.
isFinishing
)
{
if
(
tvAwardBack
!=
null
)
{
tvAwardBack
?.
setText
(
"${millisUntilFinished / 1000}"
)
tvAwardBack
.
setText
(
"${millisUntilFinished / 1000}"
)
}
}
}
}
}
override
fun
onFinish
()
{
override
fun
onFinish
()
{
if
(!
this
@AwardActivity
.
isFinishing
)
{
if
(!
this
@AwardActivity
.
isFinishing
)
{
if
(
ivAwardBack
!=
null
&&
tvAwardBack
!=
null
)
{
ivAwardBack
?.
setVisibility
(
View
.
VISIBLE
)
ivAwardBack
.
setVisibility
(
View
.
VISIBLE
)
tvAwardBack
?.
setVisibility
(
View
.
GONE
)
tvAwardBack
.
setVisibility
(
View
.
GONE
)
}
}
}
}
}
})
})
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/utils/AESUtils.java
View file @
52a3949f
...
@@ -15,7 +15,7 @@ import Decoder.BASE64Encoder;
...
@@ -15,7 +15,7 @@ import Decoder.BASE64Encoder;
public
class
AESUtils
{
public
class
AESUtils
{
private
static
final
String
vis
=
MD5
.
GetMD5Code
(
"
mints_2019
"
).
substring
(
8
,
24
);
private
static
final
String
vis
=
MD5
.
GetMD5Code
(
"
goodmoney_2020
"
).
substring
(
8
,
24
);
// public static final String key = "123456";
// public static final String key = "123456";
public
static
String
CIPHER_ALGORITHM
=
"AES/CBC/PKCS5Padding"
;
// optional value AES/DES/DESede
public
static
String
CIPHER_ALGORITHM
=
"AES/CBC/PKCS5Padding"
;
// optional value AES/DES/DESede
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/utils/ForegroundOrBackground.java
View file @
52a3949f
...
@@ -2,10 +2,10 @@ package com.mints.goodmoney.utils;
...
@@ -2,10 +2,10 @@ package com.mints.goodmoney.utils;
import
android.app.Activity
;
import
android.app.Activity
;
import
android.app.Application
;
import
android.app.Application
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
com.mints.goodmoney.manager.TrackManager
;
import
com.mints.goodmoney.mvp.presenters.VersionUpdatePresenter
;
import
com.mints.goodmoney.mvp.presenters.VersionUpdatePresenter
;
import
java.lang.ref.WeakReference
;
import
java.lang.ref.WeakReference
;
...
@@ -20,11 +20,11 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
...
@@ -20,11 +20,11 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
//获取当前最上层的activity
//获取当前最上层的activity
private
static
WeakReference
<
Activity
>
app_activity
;
private
static
WeakReference
<
Activity
>
app_activity
;
private
static
Application
foreApplication
;
private
VersionUpdatePresenter
vup
;
private
VersionUpdatePresenter
vup
;
private
WeakReference
<
Activity
>
reference
;
private
Intent
intent
;
public
static
ForegroundOrBackground
init
(
Application
application
)
{
public
static
ForegroundOrBackground
init
(
Application
application
)
{
foreApplication
=
application
;
if
(
instance
==
null
)
{
if
(
instance
==
null
)
{
instance
=
new
ForegroundOrBackground
();
instance
=
new
ForegroundOrBackground
();
application
.
registerActivityLifecycleCallbacks
(
instance
);
application
.
registerActivityLifecycleCallbacks
(
instance
);
...
@@ -38,20 +38,6 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
...
@@ -38,20 +38,6 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
@Override
@Override
public
void
onActivityResumed
(
Activity
activity
)
{
public
void
onActivityResumed
(
Activity
activity
)
{
if
(
activity
==
null
)
return
;
app_activity
=
new
WeakReference
<>(
activity
);
// String simpleName = activity.getClass().getSimpleName();
// if (TextUtils.equals(simpleName, "MainActivity")) {
// // 版本更新
// if (vup == null) {
// vup = new VersionUpdatePresenter();
// }
// if (app_activity != null) {
// vup.updateVersion(app_activity.get());
// }
// }
}
}
@Override
@Override
...
@@ -68,26 +54,33 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
...
@@ -68,26 +54,33 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
if
(
vup
==
null
)
{
if
(
vup
==
null
)
{
vup
=
new
VersionUpdatePresenter
();
vup
=
new
VersionUpdatePresenter
();
}
}
WeakReference
<
Activity
>
reference
=
new
WeakReference
<>(
activity
);
if
(
reference
==
null
){
// vup.updateVersion(reference.get());
reference
=
new
WeakReference
<>(
activity
);
}
vup
.
updateVersion
(
reference
.
get
());
}
}
}
}
@Override
@Override
public
void
onActivityStarted
(
Activity
activity
)
{
public
void
onActivityStarted
(
Activity
activity
)
{
if
(
activity
==
null
)
if
(
activity
==
null
)
return
;
return
;
String
simpleName
=
activity
.
getClass
().
getSimpleName
();
// 每次返回应用时 都展示开屏广告
if
(
// String simpleName = activity.getClass().getSimpleName();
TextUtils
.
equals
(
simpleName
,
"MainActivity"
)
)
{
// if (TextUtils.equals(simpleName, "SplashYlhActivity") ||
count
++;
// TextUtils.equals(simpleName, "GuideActivity") ||
return
;
// TextUtils.equals(simpleName, "BuyVipActivity") ||
}
// TextUtils.equals(simpleName, "VipActivity") ) {
// count++;
// return;
// }
//
// if (count == 0) {
// if (count == 0) {
// activity.startActivity(new Intent(activity, TTSplashActivity.class));
// if(intent==null){
// intent = new Intent(activity, SplashADActivity.class);
// }
// activity.startActivity(intent);
// }
// }
count
++;
count
++;
}
}
...
@@ -95,11 +88,6 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
...
@@ -95,11 +88,6 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
@Override
@Override
public
void
onActivityStopped
(
Activity
activity
)
{
public
void
onActivityStopped
(
Activity
activity
)
{
count
--;
count
--;
if
(
count
==
0
)
{
// System.out.println("mcg __ onActivityStopped");
TrackManager
.
getInstance
().
offline
();
}
}
}
@Override
@Override
...
@@ -109,6 +97,9 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
...
@@ -109,6 +97,9 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
@Override
@Override
public
void
onActivityDestroyed
(
Activity
activity
)
{
public
void
onActivityDestroyed
(
Activity
activity
)
{
if
(
activity
==
null
)
return
;
try
{
try
{
String
simpleName
=
activity
.
getClass
().
getSimpleName
();
String
simpleName
=
activity
.
getClass
().
getSimpleName
();
if
(
TextUtils
.
equals
(
simpleName
,
"MainActivity"
))
{
if
(
TextUtils
.
equals
(
simpleName
,
"MainActivity"
))
{
...
@@ -119,6 +110,5 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
...
@@ -119,6 +110,5 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
}
}
}
}
\ No newline at end of file
GoodMoney/shareSdkLib/src/main/assets/ShareSDK.xml
View file @
52a3949f
...
@@ -77,12 +77,12 @@
...
@@ -77,12 +77,12 @@
但是只能分享图片和文字,username和path是分享小程序用的的,userName是小程序的原始ID,path是小程序内的页面路径;
但是只能分享图片和文字,username和path是分享小程序用的的,userName是小程序的原始ID,path是小程序内的页面路径;
而且必须保证微信开放平台与微信公众/小程序绑定才可以分享;不需要的不用管
而且必须保证微信开放平台与微信公众/小程序绑定才可以分享;不需要的不用管
-->
-->
<Wechat
AppId=
"wx
8db5a20e0d22922e"
AppSecret=
"a211a60f27497f1698da638faa63941c
"
BypassApproval=
"false"
<Wechat
AppId=
"wx
c8ac2985f6a805e2"
AppSecret=
"05ec1f88c19ef905325ad4a316f62e9d
"
BypassApproval=
"false"
Enable=
"true"
Id=
"4"
Enable=
"true"
Id=
"4"
MiniprogramType=
"0"
Path=
"pages/index/index.html?id=1"
SortId=
"4"
MiniprogramType=
"0"
Path=
"pages/index/index.html?id=1"
SortId=
"4"
UserName=
"gh_afb25ac019c9"
WithShareTicket=
"true"
/>
UserName=
"gh_afb25ac019c9"
WithShareTicket=
"true"
/>
<WechatMoments
AppId=
"wx
8db5a20e0d22922e"
AppSecret=
"a211a60f27497f1698da638faa63941c
"
BypassApproval=
"false"
<WechatMoments
AppId=
"wx
c8ac2985f6a805e2"
AppSecret=
"05ec1f88c19ef905325ad4a316f62e9d
"
BypassApproval=
"false"
Enable=
"true"
Id=
"5"
SortId=
"5"
/>
Enable=
"true"
Id=
"5"
SortId=
"5"
/>
<WechatFavorite
AppId=
"wx4868b35061f87885"
AppSecret=
"64020361b8ec4c99936c0e3999a9f249"
Enable=
"true"
<WechatFavorite
AppId=
"wx4868b35061f87885"
AppSecret=
"64020361b8ec4c99936c0e3999a9f249"
Enable=
"true"
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
<!-- ShareByAppClient标识是否使用微博客户端分享,默认是false -->
<!-- ShareByAppClient标识是否使用微博客户端分享,默认是false -->
<QQ
AppId=
"11
09991028"
AppKey=
"RQD3TKgd1FpMTMYY
"
BypassApproval=
"false"
Enable=
"true"
Id=
"7"
<QQ
AppId=
"11
11016251"
AppKey=
"MsZdB6wyczXaysft
"
BypassApproval=
"false"
Enable=
"true"
Id=
"7"
ShareByAppClient=
"true"
SortId=
"7"
/>
ShareByAppClient=
"true"
SortId=
"7"
/>
...
...
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