Explorar o código

登录添加权限信息

wzh %!s(int64=5) %!d(string=hai) anos
pai
achega
495f368ecf
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      api/application/controllers/Common.php

+ 1 - 0
api/application/controllers/Common.php

@@ -35,6 +35,7 @@ class Common extends CI_Controller {
                 'id' => $user['id'],
                 'role' => intval($user['role']),
                 'name' => $user['name'],
+                'privilege' => $user['privilege'],
                 'avatar' => empty($user['avatar']) ? '' : base_url($user['avatar'])
             );