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
d3c66e52
authored
7 years ago
by
罗翻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android v1.10
parent
30a8da14
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
27 additions
and
16 deletions
app/release/output.json
app/release/大鱼工程师.apk
app/src/main/java/com/dayu/bigfish/Constants.java
app/src/main/java/com/dayu/bigfish/api/Api.java
app/src/main/java/com/dayu/bigfish/ui/ProcessOrderActivity.java
app/src/main/java/com/dayu/bigfish/utils/LocationUtils.java
app/src/main/java/com/dayu/bigfish/utils/managers/UserManager.java
app/src/main/res/values/strings.xml
app/release/output.json
0 → 100644
View file @
d3c66e52
[{
"outputType"
:{
"type"
:
"APK"
},
"apkInfo"
:{
"type"
:
"MAIN"
,
"splits"
:[],
"versionCode"
:
5
},
"path"
:
"app-release.apk"
,
"properties"
:{
"packageId"
:
"com.dayu.bigfish"
,
"split"
:
""
,
"minSdkVersion"
:
"16"
}}]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/release/大鱼工程师.apk
0 → 100644
View file @
d3c66e52
File added
This diff is collapsed.
Click to expand it.
app/src/main/java/com/dayu/bigfish/Constants.java
View file @
d3c66e52
...
...
@@ -20,16 +20,16 @@ public class Constants {
public
static
final
String
BASE_COUNT
=
"https://47.94.101.239:7500/"
;
/***********************测试环境配置**********************************/
public
static
final
int
DEBUGLEVEL
=
LogUtils
.
LEVEL_ALL
;
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 static final int DEBUGLEVEL = LogUtils.LEVEL_ALL;
//
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 static final int DEBUGLEVEL = LogUtils.LEVEL_OFF
;
//
public static final String BASE_URL = "https://mobile.dayu.ai";
//
public final static String UP_PHOTO = "/file/uploadMore?targetPath=online/sp/mobile/android/business/checkApply";
//
public final static String WEB_SOP = "https://sop.kf.ai/#/sop";
public
static
final
int
DEBUGLEVEL
=
LogUtils
.
LEVEL_ALL
;
public
static
final
String
BASE_URL
=
"https://mobile.dayu.ai"
;
public
final
static
String
UP_PHOTO
=
"/file/uploadMore?targetPath=online/sp/mobile/android/business/checkApply"
;
public
final
static
String
WEB_SOP
=
"https://sop.kf.ai/#/sop"
;
/*****************/
public
static
final
String
LOGIN_URL
=
"/check"
;
//登录时发送验证码的URL
...
...
This diff is collapsed.
Click to expand it.
app/src/main/java/com/dayu/bigfish/api/Api.java
View file @
d3c66e52
...
...
@@ -35,7 +35,7 @@ import retrofit2.converter.gson.GsonConverterFactory;
public
class
Api
{
private
static
APIService
service
;
private
static
Retrofit
retrofit
;
private
static
final
int
DEFAULT_TIMEOUT
=
2
0
;
private
static
final
int
DEFAULT_TIMEOUT
=
6
0
;
private
static
Retrofit
downloadRetrofit
;
public
static
APIService
getService
()
{
...
...
@@ -54,6 +54,8 @@ public class Api {
OkHttpClient
okHttpClient
=
new
OkHttpClient
.
Builder
()
.
addInterceptor
(
httpLoggingInterceptor
)
.
addInterceptor
(
tokenInterceptord
)
.
readTimeout
(
DEFAULT_TIMEOUT
,
TimeUnit
.
SECONDS
)
.
writeTimeout
(
DEFAULT_TIMEOUT
,
TimeUnit
.
SECONDS
)
.
connectTimeout
(
DEFAULT_TIMEOUT
,
TimeUnit
.
SECONDS
)
.
build
();
retrofit
=
new
Retrofit
.
Builder
()
...
...
This diff is collapsed.
Click to expand it.
app/src/main/java/com/dayu/bigfish/ui/ProcessOrderActivity.java
View file @
d3c66e52
...
...
@@ -161,10 +161,10 @@ public class ProcessOrderActivity extends BaseActivity<ProcessOrderPresenter, Ac
.
previewImage
(
true
)
// 是否可预览图片 true or false
.
isCamera
(
true
)
// 是否显示拍照按钮 true or false
.
isZoomAnim
(
true
)
// 图片列表点击 缩放效果 默认true
.
sizeMultiplier
(
0.
5f
)
// glide 加coose
载图片大小 0~1之间 如设置 .glideOverride()无效
.
setOutputCameraPath
(
"/CustomPath"
)
// 自定义拍照保存路径,可不填
.
sizeMultiplier
(
0.
1f
)
// glide 加
载图片大小 0~1之间 如设置 .glideOverride()无效
.
setOutputCameraPath
(
"/CustomPath"
)
// 自定义拍
、
照保存路径,可不填
.
compress
(
true
)
// 是否压缩 true or false
.
glideOverride
(
200
,
2
00
)
// int glide 加载宽高,越小图片列表越流畅,但会影响列表图片浏览的清晰度
.
glideOverride
(
300
,
5
00
)
// int glide 加载宽高,越小图片列表越流畅,但会影响列表图片浏览的清晰度
.
hideBottomControls
(
true
)
// 是否显示uCrop工具栏,默认不显示 true or false
.
compressSavePath
(
getPath
())
//压缩图片保存地址
.
previewEggs
(
true
)
// 预览图片时 是否增强左右滑动图片体验(图片滑动一半即可看到上一张是否选中) true or false
...
...
This diff is collapsed.
Click to expand it.
app/src/main/java/com/dayu/bigfish/utils/LocationUtils.java
View file @
d3c66e52
...
...
@@ -39,7 +39,7 @@ public class LocationUtils {
// mLocationOption.setInterval(2000);
mLocationOption
.
setOnceLocation
(
true
);
mLocationOption
.
setOnceLocationLatest
(
true
);
mLocationOption
.
setHttpTimeOut
(
5
000
);
mLocationOption
.
setHttpTimeOut
(
20
000
);
// 设置定位参数、、
mlocationClient
.
setLocationOption
(
mLocationOption
);
}
...
...
@@ -78,7 +78,7 @@ public class LocationUtils {
mDisposable
=
Observable
.
timer
(
8000
,
TimeUnit
.
MILLISECONDS
)
.
subscribe
(
aLong
->
{
if
(
flag
)
{
ToastUtils
.
showShortToast
(
"获取定位失败"
);
//
ToastUtils.showShortToast("获取定位失败");
listener
.
result
(
null
);
flag
=
false
;
mlocationClient
.
stopLocation
();
...
...
@@ -98,7 +98,7 @@ public class LocationUtils {
flag
=
false
;
mlocationClient
.
stopLocation
();
listener
.
result
(
location
);
ToastUtils
.
showShortToast
(
"定位失败了"
);
//
ToastUtils.showShortToast("定位失败了");
}
}
});
...
...
This diff is collapsed.
Click to expand it.
app/src/main/java/com/dayu/bigfish/utils/managers/UserManager.java
View file @
d3c66e52
...
...
@@ -5,6 +5,7 @@ import android.text.TextUtils;
import
com.dayu.bigfish.bean.UserInfo
;
import
com.dayu.bigfish.utils.SPUtils
;
import
com.google.gson.Gson
;
/**
* 主要管理用户信息
...
...
@@ -56,6 +57,12 @@ public class UserManager {
SPUtils
.
put
(
context
,
"IMAGE_URL"
,
imageUrl
);
}
public
void
saveUser
(
Context
context
,
UserInfo
info
)
{
if
(
info
!=
null
)
{
SPUtils
.
put
(
context
,
"USER_INFO"
,
new
Gson
().
toJson
(
info
));
}
}
public
void
saveUserInfo
(
Context
context
,
UserInfo
info
)
{
if
(!
TextUtils
.
isEmpty
(
info
.
getToken
()))
{
SPUtils
.
put
(
context
,
"ACCESS_TOKEN"
,
info
.
getToken
());
...
...
This diff is collapsed.
Click to expand it.
app/src/main/res/values/strings.xml
View file @
d3c66e52
<resources>
<string
name=
"tv_dayu"
>
大鱼
师傅
</string>
<string
name=
"tv_dayu"
>
大鱼
工程师
</string>
<string
name=
"tv_start_page_text"
>
©
 
2017
 
大鱼智能
 
版权所有
</string>
<string
name=
"tv_login_title"
>
大鱼工程师
</string>
<string
name=
"tv_fonts"
>
fonts/DIN Alternate Bold.ttf
</string>
...
...
This diff is collapsed.
Click to expand it.
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