dever hace 3 años
padre
commit
9daa0b3c3d
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      app/shop/lib/Sell.php

+ 3 - 0
app/shop/lib/Sell.php

@@ -896,6 +896,9 @@ class Sell
 
         $user = Dever::db('passport/user')->find($info['uid']);
 
+        if (!$user) {
+            $user['username'] = '无';
+        }
         if (!$user['truename']) {
             $user['truename'] = $user['username'];
         }