|
|
@@ -592,36 +592,40 @@ class LoginActivity : BaseActivity<LoginViewModel>(), UserPopupWindow.OnClearAcc
|
|
|
GlobalDataCollection.instance?.tjmdMarketSectionDataArrayList =
|
|
|
respData?.toArrayList()
|
|
|
|
|
|
- val params1 = mutableMapOf<String,String>().apply {
|
|
|
- put("marketid",GlobalDataCollection.instance?.getMaketidByTrademode(16).toString())
|
|
|
- }
|
|
|
- MyApplication.getInstance()?.chartManager?.queryDeliveryRelation(params = params1){isSuccess, respData, error ->
|
|
|
- if (isSuccess){
|
|
|
- GlobalDataCollection.instance?.setDeliveryRelationDataArrayList(respData?.toArrayList())
|
|
|
- viewModel.loadingDialogStatus.value =
|
|
|
+ viewModel.loadingDialogStatus.value =
|
|
|
TaskUiModel.success(msg = "登录成功")
|
|
|
- goHomePage()
|
|
|
- }else{
|
|
|
- viewModel.loadingDialogStatus.value =
|
|
|
- TaskUiModel.failed(InteractiveException(errorMessage = "商品交割关系表请求失败"))
|
|
|
- }
|
|
|
- }
|
|
|
+ goHomePage()
|
|
|
|
|
|
- val params = mutableMapOf<String,String>().apply {
|
|
|
- put("usertype",GlobalDataCollection.instance?.loginQueryData?.userInfo?.usertype?.toString() ?: "")
|
|
|
- put("marketids",GlobalDataCollection.instance?.getMaketidByTrademode(46)?.toString() ?: "")
|
|
|
- }
|
|
|
- MyApplication.getInstance()?.swapsManager?.queryQuoteGoodsList(params = params){isSuccess, respData, error ->
|
|
|
- if (isSuccess){
|
|
|
- GlobalDataCollection.instance?.setQuoteGoodsListDataArrayList(respData?.toArrayList())
|
|
|
- viewModel.loadingDialogStatus.value =
|
|
|
- TaskUiModel.success(msg = "登录成功")
|
|
|
- goHomePage()
|
|
|
- }else{
|
|
|
- viewModel.loadingDialogStatus.value =
|
|
|
- TaskUiModel.failed(InteractiveException(errorMessage = "掉期报价列表请求失败"))
|
|
|
- }
|
|
|
- }
|
|
|
+// val params1 = mutableMapOf<String,String>().apply {
|
|
|
+// put("marketid",GlobalDataCollection.instance?.getMaketidByTrademode(16).toString())
|
|
|
+// }
|
|
|
+// MyApplication.getInstance()?.chartManager?.queryDeliveryRelation(params = params1){isSuccess, respData, error ->
|
|
|
+// if (isSuccess){
|
|
|
+// GlobalDataCollection.instance?.setDeliveryRelationDataArrayList(respData?.toArrayList())
|
|
|
+// viewModel.loadingDialogStatus.value =
|
|
|
+// TaskUiModel.success(msg = "登录成功")
|
|
|
+// goHomePage()
|
|
|
+// }else{
|
|
|
+// viewModel.loadingDialogStatus.value =
|
|
|
+// TaskUiModel.failed(InteractiveException(errorMessage = "商品交割关系表请求失败"))
|
|
|
+// }
|
|
|
+// }
|
|
|
+//
|
|
|
+// val params = mutableMapOf<String,String>().apply {
|
|
|
+// put("usertype",GlobalDataCollection.instance?.loginQueryData?.userInfo?.usertype?.toString() ?: "")
|
|
|
+// put("marketids",GlobalDataCollection.instance?.getMaketidByTrademode(46)?.toString() ?: "")
|
|
|
+// }
|
|
|
+// MyApplication.getInstance()?.swapsManager?.queryQuoteGoodsList(params = params){isSuccess, respData, error ->
|
|
|
+// if (isSuccess){
|
|
|
+// GlobalDataCollection.instance?.setQuoteGoodsListDataArrayList(respData?.toArrayList())
|
|
|
+// viewModel.loadingDialogStatus.value =
|
|
|
+// TaskUiModel.success(msg = "登录成功")
|
|
|
+// goHomePage()
|
|
|
+// }else{
|
|
|
+// viewModel.loadingDialogStatus.value =
|
|
|
+// TaskUiModel.failed(InteractiveException(errorMessage = "掉期报价列表请求失败"))
|
|
|
+// }
|
|
|
+// }
|
|
|
}else{
|
|
|
viewModel.loadingDialogStatus.value =
|
|
|
TaskUiModel.failed(InteractiveException(errorMessage = "市场板块查询失败"))
|