rabin %!s(int64=3) %!d(string=hai) anos
pai
achega
ad7e05e146
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;