|
@@ -31,7 +31,7 @@ class WorkbenchesViewModel : BaseViewModel() {
|
|
|
fun getCountTrain(
|
|
|
fail: ((msg: String) -> Unit)? = null,
|
|
|
success: ((success: CountTrainBean) -> Unit)? = null,
|
|
|
- ) = launchFlow(true) {
|
|
|
+ ) = launchFlow(false) {
|
|
|
WORKBENCHES_API.getCountTrain()
|
|
|
}.runUI(
|
|
|
success,
|
|
@@ -44,7 +44,7 @@ class WorkbenchesViewModel : BaseViewModel() {
|
|
|
fun findMyCurrentTask(
|
|
|
fail: ((msg: String) -> Unit)? = null,
|
|
|
success: ((success: List<MyTaskBean>) -> Unit)? = null,
|
|
|
- ) = launchFlow(true) {
|
|
|
+ ) = launchFlow(false) {
|
|
|
WORKBENCHES_API.findMyCurrentTask()
|
|
|
}.runUI(
|
|
|
success,
|
|
@@ -58,7 +58,7 @@ class WorkbenchesViewModel : BaseViewModel() {
|
|
|
id: String,
|
|
|
fail: ((msg: String) -> Unit)? = null,
|
|
|
success: ((success: Record) -> Unit)? = null,
|
|
|
- ) = launchFlow(true) {
|
|
|
+ ) = launchFlow(false) {
|
|
|
WORKBENCHES_API.getGameDetail(id)
|
|
|
}.runUI(
|
|
|
success,
|
|
@@ -71,7 +71,7 @@ class WorkbenchesViewModel : BaseViewModel() {
|
|
|
fun getCountMyMsg(
|
|
|
fail: ((msg: String) -> Unit)? = null,
|
|
|
success: ((success: String) -> Unit)? = null,
|
|
|
- ) = launchFlow(true) {
|
|
|
+ ) = launchFlow(false) {
|
|
|
WORKBENCHES_API.getCountMyMsg()
|
|
|
}.runUI(
|
|
|
success,
|