💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# Service # 文件夹路径:*D:\wamp\www\xue.test\xuetang\protected\service* *D:\wamp\www\xue.test\xuetang\protected\service\UserService.php* ~~~ /** * 获取用户学校名称 * @param $userID * @return string * @author wuzhc 2017-06-20 */ public function getSchoolNameByUserID($userID) { if (!$userID) { return ''; } $userObj = $this->getSchoolByUserID($userID); return $userObj->school ? htmlspecialchars($userObj->school->fdName) : ''; } ~~~