'integer', 'updated_at' => 'integer' ]; /** * 获取access_token * @param string $public_id 公众号|小程序id * @return string access_token * @throws \Exception */ public static function getToken(string $public_id) { $token = self::where('user_name', $public_id)->first(); return $token->access_token ?? ""; } }