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,7 +689,9 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>() {
689 689
         Const.USERID?.let {
690 690
             pushBean.userids= longArrayOf(it)
691 691
         }
692
-        pushBean.pushObjname=Const.USERNAME
692
+        Const.USERNAME?.let {
693
+            pushBean.pushObjname=it
694
+        }
693 695
         viewModel.postLogPushAdd(pushBean)
694 696
     }
695 697
 

Loading…
Cancel
Save