Nim uses SSL to write dynamic library. When the dynamic library is compiled with release and danger mode, PB call will be wrong, while when compiled with Debug mode, PB call will be normal, SSL support has been opened. It's strange! I want to know how this will affect SSL when compiled with Release and danger mode.
This is the code snippet, and the error occurs on the second line.
try:
var ssl = newContext(certFile = certFilePath, keyFile = keyFilePath)
client = newHttpClient(proxy = proxy, sslContext = ssl, timeout = second * 1000)
except:
raise newException(WxPayException, errorMessage())