问题描述
我目前正在使用以下语句在服务器上启用Dim aTimer As New System.Timers.Timer
Public Function TelegramSendMessage(ByVal apilToken As String,ByVal destID As String,ByVal text As String) As String
Dim a As String = apilToken
Dim urlString As String = "https://api.telegram.org/bot" + apilToken + "/sendMessage?chat_id=" + destID + "&text=" + text
Dim webclient As WebClient = New WebClient()
Return webclient.DownloadString(urlString)
End Function
Private Sub tick(ByVal sender As Object,ByVal e As System.Timers.ElapsedEventArgs)
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
TelegramSendMessage(yourtoken,destinationid,"hi")
End Sub
Protected Sub Button3_Click(sender As Object,e As EventArgs) Handles Button3.Click
aTimer.AutoReset = True
aTimer.Interval = 60000
AddHandler aTimer.Elapsed,AddressOf tick
aTimer.Enabled = True
End Sub
Protected Sub Button4_Click(sender As Object,e As EventArgs) Handles Button4.Click
'aTimer.dispose()
'aTimer.Enabled = False
aTimer.Stop()
End Sub
:
pgcrypto
奇怪的是,我能够将其配置为某些列的默认值,但是过了一段时间,该功能似乎消失了,我开始收到此消息:
drop extension if exists pgcrypto cascade; create extension pgcrypto cascade;
运行此命令似乎表明它仍然存在:
select gen_random_uuid();
[42883] ERROR: function gen_random_uuid() does not exist Hint: No function matches the given name and argument types. You might need to add explicit type casts.
什么可能导致select * from pg_proc where proname like 'gen_random_%';
17876,gen_random_bytes,16387,10,13,1,-,f,false,true,v,s,17,23,pg_random_bytes,$libdir/pgcrypto,17877,gen_random_uuid,2950,"",pg_random_uuid,
这样消失?即使在消失之前已经明确引用了它几次?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)