getKey(); } /** * Return a key value array, containing any custom claims to be added to the JWT. * * @return array */ public function getJWTCustomClaims() { return ['role' => 'worker']; } //账号状态 const STATUS_OK = 1; const STATUS_PAUSE = 0; public static $statusMaps = [ self::STATUS_PAUSE => '暂停使用', self::STATUS_OK => '正常' ]; }