getUidByopenid($openid); return $data; } /** * 通过uid获取openid * @param int $uid * @return array * @throws \App\Exceptions\AlertException */ public static function getOpenidByUid(int $uid) { $model = new Openid(); $data = $model->getOpenidByuid($uid); return $data; } }