Commit 00cf9ece authored by 王雪伟's avatar 王雪伟

[提交人]:王雪伟

[提交简述] :神奇菜园
[实现方案] :1.2.17
parent a2eb69ea
...@@ -89,6 +89,34 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback { ...@@ -89,6 +89,34 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
AdUtils.loadFeedCacheAdToCache(this) AdUtils.loadFeedCacheAdToCache(this)
} }
/* private fun XiaoMan() {
val client = OkHttpClient()
val request: Request = Request.Builder()
.url("https://saas.hixiaoman.com/placeEnter?appKey=ddcy-az-hdgj_vbskkc&placeId=2912")
.build()
val call: Call = client.newCall(request)
call.enqueue(object : Callback {
override fun onFailure(call: Call, e: IOException) {
}
override fun onResponse(call: Call, response: Response) {
if (response.isSuccessful) {
val result = response.body()?.string()
if (result != null) {
val xiaoMan =
Utils.str2Obj(result, XiaoManEntity::class.java) as XiaoManEntity
if (xiaoMan.code == "0") {
var mXiaoManPlaceMateId = xiaoMan.data.placeMaterialId
}
}
}
}
})
}*/
private fun xiaoManInit(json: NewLandListEntity) { private fun xiaoManInit(json: NewLandListEntity) {
val client = OkHttpClient() val client = OkHttpClient()
val request: Request = Request.Builder() val request: Request = Request.Builder()
......
...@@ -55,7 +55,7 @@ class BaseApplication : BaseApplication() { ...@@ -55,7 +55,7 @@ class BaseApplication : BaseApplication() {
private var backToFrontTime: Long = 0 private var backToFrontTime: Long = 0
override fun onCreate() { override fun onCreate() {
super.onCreate() super.onCreate()
NetConfig.setBase_Url(NetConfig.Environment.PRODUCT)// TODO 上线之后提成成 NetConfig.Environment.PRODUCT NetConfig.setBase_Url(NetConfig.Environment.DEV)// TODO 上线之后提成成 NetConfig.Environment.PRODUCT
var isDebug = true var isDebug = true
if (NetConfig.sEnvironment == NetConfig.Environment.PRODUCT) { if (NetConfig.sEnvironment == NetConfig.Environment.PRODUCT) {
isDebug = false isDebug = false
......
PACKAGE_NAME=com.zxhl.game.sqcy PACKAGE_NAME=com.zxhl.game.sqcy
VERSION_CODE=15 VERSION_CODE=17
VERSION_NAME=1.2.0 VERSION_NAME=1.2.17
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment