Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
android
/
dayu
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8e389772
authored
Dec 28, 2019
by
zhangzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.3.1 uat
parent
9064395c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
46 deletions
.idea/gradle.xml
baseSDK/src/main/java/com/dayu/common/Constants.java
build.gradle
userCenter/src/main/java/com/dayu/usercenter/presenter/pwlogin/PwLoginPresenter.java
userCenter/src/main/java/com/dayu/usercenter/presenter/smslogin/SmsLoginPresenter.java
.idea/gradle.xml
View file @
8e389772
...
...
@@ -3,9 +3,8 @@
<component
name=
"GradleSettings"
>
<option
name=
"linkedExternalProjectsSettings"
>
<GradleProjectSettings>
<option
name=
"distributionType"
value=
"
LOCAL
"
/>
<option
name=
"distributionType"
value=
"
DEFAULT_WRAPPED
"
/>
<option
name=
"externalProjectPath"
value=
"$PROJECT_DIR$"
/>
<option
name=
"gradleHome"
value=
"$APPLICATION_HOME_DIR$/gradle"
/>
<option
name=
"modules"
>
<set>
<option
value=
"$PROJECT_DIR$"
/>
...
...
baseSDK/src/main/java/com/dayu/common/Constants.java
View file @
8e389772
...
...
@@ -12,30 +12,30 @@ public class Constants {
/**
* 测试环境配置.
*/
public
static
final
int
LOG_LEVEL
=
LogUtils
.
LEVEL_ALL
;
public
static
final
String
ENVIROMENT
=
"debug"
;
public
static
final
String
BASE_URL
=
"http://47.94.101.239:3112"
;
public
final
static
String
UP_PHOTO
=
"/file/uploadMore?targetPath=test/sp/mobile/android/business/checkApply"
;
public
final
static
String
WEB_SOP
=
"http://47.94.101.239:9004/#/sop"
;
public
final
static
String
CHECK_MULTI_WEB_SOP
=
"http://47.94.101.239:9004/#/manyServiceResult"
;
public
final
static
String
MULTI_WEB_SOP
=
"http://47.94.101.239:9004/#/manySop"
;
public
final
static
String
WEB_SOP_DETAIL
=
"http://47.94.101.239:9004/#/sopdetail"
;
public
final
static
String
WEB_ZHI_SHI
=
"http://47.94.101.239:9004/#/detail"
;
public
static
final
boolean
IS_DEBUG
=
true
;
//
public static final int LOG_LEVEL = LogUtils.LEVEL_ALL;
//
public static final String ENVIROMENT = "debug";
//
public static final String BASE_URL = "http://47.94.101.239:3112";
//
public final static String UP_PHOTO = "/file/uploadMore?targetPath=test/sp/mobile/android/business/checkApply";
//
public final static String WEB_SOP = "http://47.94.101.239:9004/#/sop";
//
public final static String CHECK_MULTI_WEB_SOP = "http://47.94.101.239:9004/#/manyServiceResult";
//
public final static String MULTI_WEB_SOP = "http://47.94.101.239:9004/#/manySop";
//
public final static String WEB_SOP_DETAIL = "http://47.94.101.239:9004/#/sopdetail";
//
public final static String WEB_ZHI_SHI = "http://47.94.101.239:9004/#/detail";
//
public static final boolean IS_DEBUG = true;
/**
* uat环境配置.
*/
//
public static final String ENVIROMENT = "uat";
//
public static final int LOG_LEVEL = LogUtils.LEVEL_ALL;
//
public static final String BASE_URL = "http://47.95.223.6:3112";
//
public final static String UP_PHOTO = "/file/uploadMore?targetPath=test/sp/mobile/android/business/checkApply";
//
public final static String WEB_SOP = "http://47.95.223.6:9004/#/sop";
//
public final static String WEB_SOP_DETAIL = "http://47.95.223.6:9004/#/sopdetail";
//
public final static String WEB_ZHI_SHI = "http://47.95.223.6:9004/#/detail";
//
public final static String CHECK_MULTI_WEB_SOP = "http://47.95.223.6:9004/#/manyServiceResult";
//
public final static String MULTI_WEB_SOP = "http://47.95.223.6:9004/#/manySop";
//
public static final boolean IS_DEBUG = true;
public
static
final
String
ENVIROMENT
=
"uat"
;
public
static
final
int
LOG_LEVEL
=
LogUtils
.
LEVEL_ALL
;
public
static
final
String
BASE_URL
=
"http://47.95.223.6:3112"
;
public
final
static
String
UP_PHOTO
=
"/file/uploadMore?targetPath=test/sp/mobile/android/business/checkApply"
;
public
final
static
String
WEB_SOP
=
"http://47.95.223.6:9004/#/sop"
;
public
final
static
String
WEB_SOP_DETAIL
=
"http://47.95.223.6:9004/#/sopdetail"
;
public
final
static
String
WEB_ZHI_SHI
=
"http://47.95.223.6:9004/#/detail"
;
public
final
static
String
CHECK_MULTI_WEB_SOP
=
"http://47.95.223.6:9004/#/manyServiceResult"
;
public
final
static
String
MULTI_WEB_SOP
=
"http://47.95.223.6:9004/#/manySop"
;
public
static
final
boolean
IS_DEBUG
=
true
;
/**
* 正式环境.
...
...
build.gradle
View file @
8e389772
...
...
@@ -5,8 +5,8 @@ buildscript {
ext
.
build_tools_version
=
"27.0.3"
ext
.
min_sdk_version
=
16
ext
.
target_sdk_version
=
23
ext
.
version_code
=
21
ext
.
verson_name
=
"
1.9.9
"
ext
.
version_code
=
2
3
1
ext
.
verson_name
=
"
2.3.1
"
ext
.
gradle_version
=
'3.1.4'
ext
.
isReleaseMinify
=
true
ext
.
isDebugMinify
=
false
...
...
userCenter/src/main/java/com/dayu/usercenter/presenter/pwlogin/PwLoginPresenter.java
View file @
8e389772
...
...
@@ -159,18 +159,19 @@ public class PwLoginPresenter extends PwLoginContract.Presenter {
}
private
void
showLoginDialog
()
{
mView
.
showLoginDialog
((
dialog
,
confirm
)
->
{
if
(
confirm
)
{
mView
.
startActivity
(
IdentityCertificationActivity
.
class
);
}
else
{
if
(
UserManager
.
getInstance
().
getRole
()
==
Constants
.
ENGINEER
)
{
ARouter
.
getInstance
().
build
(
RouterPath
.
PATH_MAIN
).
navigation
();
}
else
if
(
UserManager
.
getInstance
().
getRole
()
==
Constants
.
MANAGER_ENGINEER
)
{
AppManager
.
getInstance
().
finishAllActivity
();
ARouter
.
getInstance
().
build
(
RouterPath
.
PATH_SERVICESTATION
).
navigation
();
}
}
});
// mView.showLoginDialog((dialog, confirm) -> {
// if (confirm) {
// mView.startActivity(IdentityCertificationActivity.class);
// } else {
// if (UserManager.getInstance().getRole() == Constants.ENGINEER) {
// ARouter.getInstance().build(RouterPath.PATH_MAIN).navigation();
// } else if (UserManager.getInstance().getRole() == Constants.MANAGER_ENGINEER) {
// AppManager.getInstance().finishAllActivity();
// ARouter.getInstance().build(RouterPath.PATH_SERVICESTATION).navigation();
// }
// }
// });
}
@Override
...
...
userCenter/src/main/java/com/dayu/usercenter/presenter/smslogin/SmsLoginPresenter.java
View file @
8e389772
...
...
@@ -206,17 +206,18 @@ public class SmsLoginPresenter extends SmsLoginContract.Presenter {
}
private
void
showLoginDialog
()
{
mView
.
showLoginDialog
((
dialog
,
confirm
)
->
{
if
(
confirm
)
{
mView
.
startActivity
(
IdentityCertificationActivity
.
class
);
}
else
{
if
(
UserManager
.
getInstance
().
getRole
()
==
Constants
.
ENGINEER
)
{
ARouter
.
getInstance
().
build
(
RouterPath
.
PATH_MAIN
).
navigation
();
}
else
if
(
UserManager
.
getInstance
().
getRole
()
==
Constants
.
MANAGER_ENGINEER
)
{
AppManager
.
getInstance
().
finishAllActivity
();
ARouter
.
getInstance
().
build
(
RouterPath
.
PATH_SERVICESTATION
).
navigation
();
}
}
});
// mView.showLoginDialog((dialog, confirm) -> {
// if (confirm) {
// mView.startActivity(IdentityCertificationActivity.class);
// } else {
// if (UserManager.getInstance().getRole() == Constants.ENGINEER) {
// ARouter.getInstance().build(RouterPath.PATH_MAIN).navigation();
// } else if (UserManager.getInstance().getRole() == Constants.MANAGER_ENGINEER) {
// AppManager.getInstance().finishAllActivity();
// ARouter.getInstance().build(RouterPath.PATH_SERVICESTATION).navigation();
// }
// }
// });
}
}
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