jd-assistant icon indicating copy to clipboard operation
jd-assistant copied to clipboard

code 优化

Open adrielliu opened this issue 3 years ago • 0 comments

https://github.com/tychxn/jd-assistant/blob/92bcd4f6d5b10bc92a5ee9b0000e0a2e15e34a73/jd_assistant.py#L48

这里 if not self.eid or not self.fp or not self.track_id or not self.risk_control: raise AsstException('请在 config.ini 中配置 eid, fp, track_id, risk_control 参数,具体请参考 wiki-常见问题') 可以改成 if not all([self.eid, self.fp, self.track_id, self.risk_control]): raise AsstException('请在 config.ini 中配置 eid, fp, track_id, risk_control 参数,具体请参考 wiki-常见问题') 没有对与错, 看起来更简洁,

adrielliu avatar Apr 02 '21 06:04 adrielliu