Home > Mobile >  Small program through sessionKey stil get the user information
Small program through sessionKey stil get the user information

Time:09-17

According to the sessionKey, encryptedData, called decryption interface Senparc iv. Weixin. WxOpen. Helpers. EncryptHelper. DecodeEncryptedData, the return value is the code (parameters no problem, already filtering) +.

CodePudding user response:

Problems appear occasionally, the chances of getting most is at the interface is released, basic will appear first request, also occasionally appear behind the problem
Interface is the.net core, the introduction of Senparc. Weixin. WxOpen package

CodePudding user response:

I was to send a post request, so there is no problem. +

CodePudding user response:

Problem has been solved! Is due to the small program end session_key has not expired, and once again call interface to obtain session_key cause garbled question! Specific process is as follows: before the small program end call interface for session_key, with wx. First check whether session_key checkSession function effectively, effectively under the condition of without again call interface, not need to call interface for session_key then decrypted! Note: according to the above methods, there may be a real machine debugging gibberish, inside the onl oad method force call interface for session_key exists in the cache, which purpose is to force the session_key replace original garbled words
  • Related