dever 4 years ago
parent
commit
2e3f336ae2
1 changed files with 7 additions and 0 deletions
  1. 7 0
      lib/Core.php

+ 7 - 0
lib/Core.php

@@ -121,6 +121,13 @@ class Core
 				return $order_id;
 			}
 		} else {
+
+			if (!$username && Dever::project('passport')) {
+				$user = Dever::db('passport/user')->one($uid);
+				if ($user) {
+					$username = $user['username'];
+				}
+			}
 			$add['status'] = 1;
 			$add['uid'] = $uid;
 			$add['username'] = $username;