Browse Source

1.增加判空

20241218TB223FC(测试jar包)
wangwanlei 8 months ago
parent
commit
ebdcd60a13

+ 3
- 1
app/src/main/java/com/xhly/manageapp/ui/main/activity/MainActivity.kt View File

689
         Const.USERID?.let {
689
         Const.USERID?.let {
690
             pushBean.userids= longArrayOf(it)
690
             pushBean.userids= longArrayOf(it)
691
         }
691
         }
692
-        pushBean.pushObjname=Const.USERNAME
692
+        Const.USERNAME?.let {
693
+            pushBean.pushObjname=it
694
+        }
693
         viewModel.postLogPushAdd(pushBean)
695
         viewModel.postLogPushAdd(pushBean)
694
     }
696
     }
695
 
697
 

Loading…
Cancel
Save