修复光能模块若干bug

This commit is contained in:
lyr
2020-12-23 10:11:25 +08:00
parent 29bc098dcf
commit fdbb16b45f
6 changed files with 12 additions and 14 deletions

View File

@ -8,13 +8,11 @@ import android.widget.LinearLayout
import android.widget.PopupWindow
import android.widget.TextView
import com.facebook.drawee.view.SimpleDraweeView
import com.gh.base.CurrentActivityHolder
import com.gh.gamecenter.R
import com.gh.gamecenter.entity.EnergyTaskCompleteEntity
import com.gh.gamecenter.guangneng.GuangnengCenterActivity
import com.gh.gamecenter.guangneng.GuangnengHouseActivity
import com.gh.gamecenter.manager.UserManager
import com.gh.gamecenter.retrofit.BiResponse
import com.gh.gamecenter.retrofit.EmptyResponse
import com.gh.gamecenter.retrofit.RetrofitManager
import com.halo.assistant.HaloApp
import com.lightgame.utils.AppManager
@ -73,7 +71,7 @@ object EnergyTaskHelper {
val body = RequestBody.create(MediaType.parse("application/json"), jsonObject.toString())
RetrofitManager.getInstance(HaloApp.getInstance().application)
.api.postEnergyTask(body)
.api.postEnergyTask(UserManager.getInstance().userId, body)
.subscribeOn(Schedulers.io())
.observeOn(Schedulers.io())
.subscribe(object : BiResponse<List<EnergyTaskCompleteEntity>>() {