Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
LuckyFarm
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
LuckyFarm
Commits
b4a404b0
Commit
b4a404b0
authored
Dec 02, 2020
by
wangxuewei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[提交人]:王雪伟
[提交简述] :多多花园1.0.1 [实现方案] :替换列表接口
parent
d3510ce4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
11 deletions
+31
-11
GameActivity.kt
app/src/main/java/com/ym/game/GameActivity.kt
+5
-3
BaseApplication.kt
app/src/main/java/com/ym/game/application/BaseApplication.kt
+6
-6
LandListEntity.java
...y/src/main/java/com/ym/library/module/LandListEntity.java
+18
-0
IGameApi.kt
library/src/main/java/com/ym/library/net/IGameApi.kt
+1
-1
NetConfig.java
library/src/main/java/com/ym/library/net/NetConfig.java
+1
-1
No files found.
app/src/main/java/com/ym/game/GameActivity.kt
View file @
b4a404b0
...
...
@@ -49,9 +49,6 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
@SuppressLint
(
"CheckResult"
)
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
StatusBarUtils
.
transportStatus
(
this
,
resources
.
getColor
(
R
.
color
.
transparent
))
requestedOrientation
=
ActivityInfo
.
SCREEN_ORIENTATION_PORTRAIT
// 禁用横屏
window
.
addFlags
(
WindowManager
.
LayoutParams
.
FLAG_SECURE
)
//禁止截屏
super
.
onCreate
(
savedInstanceState
)
EventUtils
.
onEvent
(
"tab_imp"
,
"多多花园"
)
if
(
SettingPreference
.
getIsShowGuide
())
{
...
...
@@ -582,6 +579,10 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
})
}
//看视频解锁地块
fun
lookAdVideoUnLockLand
(){
callUnity
(
"Form_land"
,
"lookAdVideoUnLockLandSuccess"
,
""
)
}
//加速剂
fun
getUseAccelerators
(
callback
:
IUnitySendMessageCallback
?,
id
:
Int
)
{
GameApiClient
.
gameApi
.
getUseAccelerators
(
id
).
compose
(
RxSchedulers
.
observableIO2Main
())
...
...
@@ -999,6 +1000,7 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
})
}
fun
showCloudDialog
(
speedtime
:
Int
,
sppedtimes
:
Int
){
Log
.
d
(
"wxw"
,
"雲朵加速"
);
MainLooper
.
get
()
?.
post
(
Runnable
{
// CashExchangeDialog.showCashExchage(this, this)
MainDialog
.
showDialogCloud
(
this
,
speedtime
,
sppedtimes
,
View
.
OnClickListener
{
...
...
app/src/main/java/com/ym/game/application/BaseApplication.kt
View file @
b4a404b0
...
...
@@ -53,16 +53,16 @@ class BaseApplication : BaseApplication() {
private
var
backToFrontTime
:
Long
=
0
override
fun
onCreate
()
{
super
.
onCreate
()
NetConfig
.
setBase_Url
(
NetConfig
.
Environment
.
PRODUCT
)
// TODO 上线之后提成成 NetConfig.Environment.PRODUCT
NetConfig
.
BASE_FEED_URL
=
"https://fsapi.ihuomao.com/"
NetConfig
.
BASE_AD_URL
=
"https://bs.ihuomao.com/"
NetConfig
.
URL_REPORT_BASE
=
"http://report.ihuomao.com/"
NetConfig
.
setBase_Url
(
NetConfig
.
Environment
.
DEV
)
// TODO 上线之后提成成 NetConfig.Environment.PRODUCT
//
NetConfig.BASE_FEED_URL="https://fsapi.ihuomao.com/"
//
NetConfig.BASE_AD_URL="https://bs.ihuomao.com/"
//
NetConfig.URL_REPORT_BASE="http://report.ihuomao.com/"
//TODO 上线去掉测试地址
//
NetConfig.BASE_FEED_URL = "http://feedapitest2.zhangxinhulian.com/"
// Constant.appLs = "
afcbef40e31631d3
"//appls
NetConfig
.
BASE_FEED_URL
=
"http://feedapitest2.zhangxinhulian.com/"
// Constant.appLs = "
b59e7d03c0f91730
"//appls
AdManager
.
init
(
this
,
"b59e7d03c0f91730"
)
LogUtils
.
getConfig
().
logSwitch
=
true
UMConfigure
.
setLogEnabled
(
true
)
...
...
library/src/main/java/com/ym/library/module/LandListEntity.java
View file @
b4a404b0
...
...
@@ -37,6 +37,24 @@ public class LandListEntity {
private
LandConfigList
[]
growList
;
private
int
fruitNum
;
//水果数量
private
int
acceleratorsNum
;
//加速剂数量
private
int
targetVideoNum
;
//解锁需看视频数量
private
int
currentVideoNum
;
//当前已看视频数量
public
int
getTargetVideoNum
()
{
return
targetVideoNum
;
}
public
void
setTargetVideoNum
(
int
targetVideoNum
)
{
this
.
targetVideoNum
=
targetVideoNum
;
}
public
int
getCurrentVideoNum
()
{
return
currentVideoNum
;
}
public
void
setCurrentVideoNum
(
int
currentVideoNum
)
{
this
.
currentVideoNum
=
currentVideoNum
;
}
public
LandConfigList
[]
getGrowList
()
{
return
growList
;
...
...
library/src/main/java/com/ym/library/net/IGameApi.kt
View file @
b4a404b0
...
...
@@ -337,7 +337,7 @@ interface IGameApi {
* @paramq
* @return
*/
@GET
(
NetConfig
.
Game
.
URL_GAME_
HOME_WD
_LIST
)
@GET
(
NetConfig
.
Game
.
URL_GAME_
ORDER
_LIST
)
fun
getHomeWList
():
Observable
<
Response
<
List
<
HomeListEntity
>>>
/**
...
...
library/src/main/java/com/ym/library/net/NetConfig.java
View file @
b4a404b0
...
...
@@ -227,7 +227,7 @@ public class NetConfig {
public
static
final
String
URL_COLLECT_CARD_OPEN
=
"app/v1/collect-card/open"
;
//开宝箱
public
static
final
String
URL_COLLECT_CARD_ADV_PUT_OR_ADD
=
"app/v1/collect-card/advPutOrAdd"
;
//看广告单个图片获取或者拼图
public
static
final
String
URL_COLLECT_CARD_ADD_CARD
=
"app/v1/collect-card/addCard"
;
//收金币获得卡片
public
static
final
String
URL_GAME_HOME_WD_LIST
=
"app/v1/game/ddcy/home_wd_list"
;
//首页展示果实列表
//
public static final String URL_GAME_HOME_WD_LIST = "app/v1/game/ddcy/home_wd_list";//首页展示果实列表
public
static
final
String
URL_CLOCK_BOX_RECEIVE
=
"app/v1/game/ddcy/clock_box_receive"
;
//打卡普通打卡任务领取
public
static
final
String
URL_GAME_VIDEO_TASK_COMPLETE
=
"app/v1/game/video_task_complete"
;
//看领金币视频任务
...
...
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