<?php use thans\jwt\facade\JWTAuth; // 应用公共文件 function getQydm(){ $payload = JWTAuth::auth(); return $payload['qydm']->getValue(); }