rabin 3 years ago
parent
commit
ad7e05e146
1 changed files with 3 additions and 0 deletions
  1. 3 0
      service/agent/src/Children.php

+ 3 - 0
service/agent/src/Children.php

@@ -29,6 +29,9 @@ class Children
 			}
 
 			$top = Dever::db('agent/member')->find($parent[0]['uid']);
+			if (!$top) {
+				Dever::alert('错误的上级用户信息');
+			}
 			$color = $this->parent_color;
 			# 状态记录 为1时是父级别 2是子级别
 			$state = 1;