diff --git a/pyqt5fluentdesign/__pycache__/app_detail_window.cpython-38.pyc b/pyqt5fluentdesign/__pycache__/app_detail_window.cpython-38.pyc new file mode 100644 index 0000000..9285f4f Binary files /dev/null and b/pyqt5fluentdesign/__pycache__/app_detail_window.cpython-38.pyc differ diff --git a/pyqt5fluentdesign/app_detail_window.py b/pyqt5fluentdesign/app_detail_window.py index e6d6dfb..13d48b2 100644 --- a/pyqt5fluentdesign/app_detail_window.py +++ b/pyqt5fluentdesign/app_detail_window.py @@ -276,6 +276,7 @@ class AppDetailWindow(QMainWindow): # 通过开发者ID查询开发者名称 developer_id = app_data.get('developer_id', '') + result2 = self.api_client.make_request('getdeveloperinfo', {'id': developer_id}) developer_name = "未知开发者" if developer_id and developer_id != "0": @@ -283,7 +284,7 @@ class AppDetailWindow(QMainWindow): try: developer_info = self.api_client.make_request('getdeveloperinfo', {'id': developer_id}) if isinstance(developer_info, dict) and 'success' in developer_info and developer_info['success']: - developer_name = developer_info['data'].get('name', '未知开发者') + developer_name = result2['data'].get('username') else: # 如果API调用失败,尝试从本地数据获取 if 'developer_name' in app_data and app_data['developer_name']: @@ -366,12 +367,12 @@ class AppDetailWindow(QMainWindow): stats_card.setStyleSheet(""" #StatsCard { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); - color: white; + /* color: white; */ border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); } #StatsCard QLabel { - color: white; + /* color: white; */ } """) @@ -453,9 +454,16 @@ class AppDetailWindow(QMainWindow): info_grid_layout.setColumnStretch(1, 1) # 添加基本信息字段,对开发者信息进行特殊处理 - developer_name = app_data.get("developer_name", "") + print(app_data) + developer_id = app_data.get('developer_id') + print(developer_id) + result2 = self.api_client.make_request('getdeveloperinfo', {'id': developer_id}) + result2 = result2["data"] + print(result2) + developer_name = result2.get("username") + print(developer_name) if not developer_name: - developer_name = app_data.get("developer", "--") + developer_name = result2.get("username") info_items = [ ("应用ID", app_data.get("id", "--")),