🚂 12306 购票助手,支持集群,多账号,多任务购票以及 Web 页面管理
This report summarizes scanner evidence for pjialin/py12306, a Python project with 14,964 GitHub stars. SynthScan examined 8,427 lines of code across 60 source files, recording 116 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 18.9 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 33 finding(s).
Are imports declared and package/API names verified? 59 finding(s).
Are wrappers, guards, and repeated structures necessary? 45 finding(s).
Which changes need focused human review? 116 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 116 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | main.py | 4 | CODE | |
| LOW | py12306/config.py | 2 | CODE | |
| LOW | py12306/config.py | 7 | CODE | |
| LOW | py12306/app.py | 5 | CODE | |
| LOW | py12306/order/order.py | 8 | CODE | |
| LOW | py12306/order/order.py | 9 | CODE | |
| LOW | py12306/cluster/redis.py | 1 | CODE | |
| LOW | py12306/cluster/redis.py | 4 | CODE | |
| LOW | py12306/cluster/redis.py | 7 | CODE | |
| LOW | py12306/cluster/cluster.py | 4 | CODE | |
| LOW | py12306/cluster/cluster.py | 7 | CODE | |
| LOW | py12306/cluster/cluster.py | 12 | CODE | |
| LOW | py12306/web/web.py | 2 | CODE | |
| LOW | py12306/web/web.py | 6 | CODE | |
| LOW | py12306/web/web.py | 11 | CODE | |
| LOW | py12306/web/handler/user.py | 6 | CODE | |
| LOW | py12306/web/handler/query.py | 1 | CODE | |
| LOW | py12306/web/handler/query.py | 5 | CODE | |
| LOW | py12306/web/handler/log.py | 1 | CODE | |
| LOW | py12306/web/handler/log.py | 10 | CODE | |
| LOW | py12306/web/handler/log.py | 11 | CODE | |
| LOW | py12306/web/handler/stat.py | 1 | CODE | |
| LOW | py12306/web/handler/app.py | 4 | CODE | |
| LOW | py12306/web/handler/app.py | 4 | CODE | |
| LOW | py12306/web/handler/app.py | 9 | CODE | |
| LOW | py12306/web/handler/app.py | 10 | CODE | |
| LOW | py12306/user/user.py | 1 | CODE | |
| LOW | py12306/user/user.py | 4 | CODE | |
| LOW | py12306/user/job.py | 7 | CODE | |
| LOW | py12306/user/job.py | 8 | CODE | |
| LOW | py12306/user/job.py | 11 | CODE | |
| LOW | py12306/log/query_log.py | 4 | CODE | |
| LOW | py12306/log/query_log.py | 10 | CODE | |
| LOW | py12306/log/cluster_log.py | 2 | CODE | |
| LOW | py12306/log/user_log.py | 2 | CODE | |
| LOW | py12306/log/common_log.py | 2 | CODE | |
| LOW | py12306/log/common_log.py | 3 | CODE | |
| LOW | py12306/log/order_log.py | 2 | CODE | |
| LOW | py12306/log/redis_log.py | 2 | CODE | |
| LOW | py12306/log/base.py | 1 | CODE | |
| LOW | py12306/log/base.py | 7 | CODE | |
| LOW | py12306/query/query.py | 5 | CODE | |
| LOW | py12306/query/job.py | 11 | CODE | |
| LOW | py12306/helpers/auth_code.py | 8 | CODE | |
| LOW | py12306/helpers/auth_code.py | 9 | CODE | |
| LOW | py12306/helpers/auth_code.py | 10 | CODE | |
| LOW | py12306/helpers/event.py | 1 | CODE | |
| LOW | py12306/helpers/notification.py | 4 | CODE | |
| LOW | py12306/helpers/request.py | 2 | CODE | |
| LOW | py12306/helpers/request.py | 4 | CODE | |
| LOW | py12306/helpers/type.py | 1 | CODE | |
| LOW | py12306/helpers/station.py | 4 | CODE | |
| LOW | py12306/helpers/cdn.py | 3 | CODE | |
| LOW | py12306/helpers/cdn.py | 10 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | py12306/order/order.py | 78 | 'async () => {let i = 3 * 10; while (!csessionid && i >= 0) await new Promise(resolve => setTimeout(resolve, | CODE |
| HIGH⚡ | py12306/order/order.py | 135 | 'async () => {let i = 3 * 10; while (!csessionid && i >= 0) await new Promise(resolve => setTimeout(resolve, | CODE |
| HIGH⚡ | py12306/helpers/func.py | 177 | if value: return true | CODE |
| HIGH⚡ | py12306/helpers/func.py | 178 | return false | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | py12306/config.py | 186 | def update_configs_from_remote(self, envs, first=False): | CODE |
| LOW | py12306/app.py | 92 | def check_user_account_is_empty(cls): | CODE |
| LOW | py12306/order/order.py | 577 | def make_passenger_ticket_str(self): | CODE |
| LOW | py12306/user/user.py | 82 | def get_passenger_for_members(cls, members, key): | CODE |
| LOW | py12306/user/job.py | 551 | def get_passengers_by_members(self, members): | CODE |
| LOW | py12306/log/query_log.py | 118 | def print_ticket_num_less_than_specified(cls, rest_num, job): | CODE |
| LOW | py12306/log/query_log.py | 128 | def print_ticket_seat_available(cls, left_date, train_number, seat_type, rest_num): | CODE |
| LOW | py12306/log/user_log.py | 71 | def print_user_passenger_init_success(cls, passengers): | CODE |
| LOW | py12306/log/order_log.py | 45 | def print_passenger_did_deleted(cls, passengers): | CODE |
| LOW | py12306/log/order_log.py | 60 | def get_order_success_notification_info(cls, query): | CODE |
| LOW⚡ | py12306/query/job.py | 363 | def get_info_of_arrive_station(self): | CODE |
| LOW⚡ | py12306/query/job.py | 372 | def get_info_of_train_left_time(self): | CODE |
| LOW⚡ | py12306/query/job.py | 375 | def get_info_of_train_arrive_time(self): | CODE |
| LOW | py12306/helpers/notification.py | 61 | def send_voice_code_of_yiyuan(self, phone, name='', content=''): | CODE |
| LOW | py12306/helpers/notification.py | 93 | def send_voice_code_of_dingxin(self, phone, name='', info={}): | CODE |
| LOW | py12306/helpers/notification.py | 142 | def send_email_by_smtp_with_qrcode(self, to, title, qrcode_path): | CODE |
| LOW | py12306/helpers/OCR.py | 32 | def get_img_position_by_ruokuai(self, img): | CODE |
| LOW | py12306/helpers/OCR.py | 43 | def get_image_position_by_offset(self, offsets): | CODE |
| LOW | py12306/helpers/func.py | 156 | def objects_find_object_by_key_value(objects, key, value, default=None): | CODE |
| LOW⚡ | py12306/helpers/func.py | 171 | def array_dict_find_by_key_value(data, key, value, default=None): | CODE |
| LOW⚡ | py12306/helpers/func.py | 181 | def sleep_forever_when_in_test(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | py12306/order/order.py | 139 | except Exception as e: | CODE |
| LOW⚡ | py12306/order/order.py | 143 | except Exception: | CODE |
| LOW⚡ | py12306/order/order.py | 147 | except Exception: | CODE |
| LOW | py12306/order/order.py | 214 | except Exception: | CODE |
| LOW | py12306/user/job.py | 177 | except Exception: | CODE |
| LOW | py12306/user/job.py | 192 | except Exception as e: | CODE |
| LOW | py12306/user/job.py | 200 | except Exception as e: | CODE |
| LOW | py12306/user/job.py | 275 | except Exception as e: | CODE |
| LOW | py12306/user/job.py | 355 | except Exception: | CODE |
| LOW | py12306/user/job.py | 381 | except Exception: | CODE |
| LOW | py12306/user/job.py | 622 | except Exception: | CODE |
| MEDIUM | py12306/user/job.py | 251 | def download_code(self): | CODE |
| LOW | py12306/query/query.py | 150 | except Exception: | CODE |
| LOW | py12306/query/query.py | 176 | except Exception: | CODE |
| LOW | py12306/query/query.py | 216 | except Exception: | CODE |
| LOW | py12306/helpers/notification.py | 139 | except Exception as e: | CODE |
| LOW | py12306/helpers/notification.py | 179 | except Exception as e: | STRING |
| LOW | py12306/helpers/notification.py | 226 | except Exception as e: | STRING |
| LOW | py12306/helpers/notification.py | 236 | except Exception as e: | STRING |
| LOW | py12306/helpers/request.py | 52 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | py12306/order/order.py | 143 | except Exception: | CODE |
| HIGH | py12306/order/order.py | 147 | except Exception: | CODE |
| HIGH | py12306/user/job.py | 260 | except FileExistsError: | CODE |
| HIGH | py12306/query/query.py | 216 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | py12306/config.py | 186 | CODE | |
| LOW | py12306/order/order.py | 494 | CODE | |
| LOW | py12306/cluster/cluster.py | 202 | CODE | |
| LOW | py12306/user/job.py | 162 | CODE | |
| LOW | py12306/user/job.py | 360 | CODE | |
| LOW | py12306/user/job.py | 551 | CODE | |
| LOW | py12306/query/query.py | 155 | CODE | |
| LOW | py12306/query/job.py | 113 | CODE | |
| LOW | py12306/query/job.py | 201 | CODE | |
| LOW | py12306/helpers/request.py | 81 | CODE | |
| LOW | py12306/helpers/qrcode.py | 6 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | py12306/web/static/js/vendor.aebd1de04bf90e88d9c7.js | 12 | var n=Object.freeze({});function i(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function o(e | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | py12306/query/query.py | 221 | self.request_device_id(True) | COMMENT |