def _update_crypto(self):
if self.__encrypt_mode in ['<STR_LIT>', '<STR_LIT>'] and self.__encoding_aes_key is not None:<EOL><INDENT>if self.__token is None or self.__appid is None:<EOL><INDENT>raise NeedParamError('<STR_LIT>')<EOL><DEDENT>self.__crypto = BasicCrypto(self.__token, self.__encoding_aes_key, self.__appid)<EOL><DEDENT>else:<EOL><INDENT>self.__crypto = None<EOL><DEDENT>
根据当前配置内容更新 Crypto 类