# from PIL import Image
# from settings import recordDataPoint
from service.online_request.module_online_data import OnlineDataRequest,AIGCDataRequest

tempData = {
    "code": 0,
    "message": "",
    "data": {
        "error_folder_list": [],
        "goods_no_dict": {
            "A596371111": {
                "款号": "A596371",
                "货号资料": [
                    {
                        "货号": "A596371",
                        "文件夹名称": "A596371",
                        " 编号": "",
                        "颜色名称": "黑色",
                        "pics": {
                            "俯视-抠图": "output/2025-08-20/A596371/阴影图处理/A596371（1）_俯视_抠图.png",
                            "俯视-阴影": "output/2025-08-20/A596371/阴影图处理/A596371（1）_俯视_阴影.png",
                            "侧视-抠图": "output/2025-08-20/A596371/阴影图处理/A596371（2）_侧视_抠图.png",
                            "侧视-阴影": "output/2025-08-20/A596371/阴影图处理/A596371（2）_侧视_阴影.png",
                            "后跟-抠图": "output/2025-08-20/A596371/阴影图处理/A596371（3）_后跟_抠图.png",
                            "后跟-阴影": "output/2025-08-20/A596371/阴影图处理/A596371（3）_后跟_阴影.png",
                            "鞋底-抠图": "output/2025-08-20/A596371/阴影图处理/A596371（4）_鞋底_抠图.png",
                            "鞋底-阴影": "output/2025-08-20/A596371/阴影图处理/A596371（4）_鞋底_阴影.png",
                            "内里-抠图": "output/2025-08-20/A596371/阴影图处理/A596371（5）_内里_抠图.png",
                            "内里-阴影": "output/2025-08-20/A596371/阴影图处理/A596371（5）_内里_阴影.png",
                            "其他1-抠图": "output/2025-08-20/A596371/阴影图处理/A596371（6）_其他1_抠图.png",
                            "其他1-阴影": "output/2025-08-20/A596371/阴影图处理/A596371（6）_其他1_阴影.png",
                            "其他0-抠图": "output/2025-08-20/A596371/阴影图处理/A596371（7）_其他0_抠图.png",
                            "其他0-阴影": "output/2025-08-20/A596371/阴影图处理/A596371（7）_其他0_阴影.png",
                        },
                        "800x800": [
                            "output/2025-08-20/A596371/800x800/A596371（1）_800.png",
                            "output/2025-08-20/A596371/800x800/A596371（2）_800.png",
                            "output/2025-08-20/A596371/800x800/A596371（3）_800.png",
                            "output/2025-08-20/A596371/800x800/A596371（4）_800.png",
                            "output/2025-08-20/A596371/800x800/A596371（5）_800.png",
                            "output/2025-08-20/A596371/800x800/A596371（6）_800.png",
                            "output/2025-08-20/A596371/800x800/A596371（7）_800.png",
                        ],
                    }
                ],
                "商品面料": "",
                "商品内里": "",
                "商品鞋底": "",
                "鞋垫": "",
                "商品标题": "女单鞋",
                "商品价格": "300.00",
            }
        },
        "succeed_folder_list": ["A596371"],
        "temp_name": "huilima-1",
        "temp_name_list": [
            "huilima-1",
            "huilima-2",
            "huilima-3",
            "huilima-4",
            "xinnuo-1",
            "xinnuo-2",
            "xinnuo-3",
            "huilima-6",
            "xinjunlue-1",
            "qingyangyizhan-1",
        ],
        "assigned_page_dict": {},
        "excel_temp_goods_no_data": {},
        "finally_goods_no_need_temps": {"A596371": ["huilima-1"]},
        "config_data": {
            "image_dir": "output/2025-08-20",
            "image_order": "俯视,侧视,后跟,鞋底,内里,组合,组合2",
            "goods_art_no": "",
            "goods_art_nos": ["A596371"],
            "is_check_number": False,
            "resize_image_view": "后跟",
            "cutout_mode": 1,
            "logo_path": "",
            "special_goods_art_no_folder_line": "",
            "is_use_excel": False,
            "excel_path": "",
            "is_check_color_is_all": False,
            "cutout_is_pass": True,
            "assigned_page_dict": {},
            "detail_is_pass": True,
            "upload_is_pass": False,
            "upload_is_enable": True,
            "is_filter": False,
            "temp_class": {
                "huilima-1": "custom_plugins.plugins.detail_template.huilima.detail_huilima1.DetailPicGet",
                "huilima-2": "custom_plugins.plugins.detail_template.huilima.detail_huilima2.DetailPicGet",
                "huilima-3": "custom_plugins.plugins.detail_template.huilima.detail_huilima3.DetailPicGet",
                "huilima-4": "custom_plugins.plugins.detail_template.huilima.detail_huilima4.DetailPicGet",
                "xinnuo-1": "custom_plugins.plugins.detail_template.xinnuo.detail_xinnuo1.DetailPicGet",
                "xinnuo-2": "custom_plugins.plugins.detail_template.xinnuo.detail_xinnuo2.DetailPicGet",
                "xinnuo-3": "custom_plugins.plugins.detail_template.xinnuo.detail_xinnuo3.DetailPicGet",
                "huilima-6": "custom_plugins.plugins.detail_template.huilima.detail_huilima6.DetailPicGet",
                "xinjunlue-1": "custom_plugins.plugins.detail_template.xinjunlue.detail_xinjunlue1.DetailPicGet",
                "qingyangyizhan-1": "custom_plugins.plugins.detail_template.qingyangyizhan.detail_qingyangyizhan1.DetailPicGet",
            },
            "temp_name": "huilima-1",
            "temp_name_list": [
                "huilima-1",
                "huilima-2",
                "huilima-3",
                "huilima-4",
                "xinnuo-1",
                "xinnuo-2",
                "xinnuo-3",
                "huilima-6",
                "xinjunlue-1",
                "qingyangyizhan-1",
            ],
            "target_error_folder": "output/2025-08-20/软件-生成详情错误",
            "success_handler": [],
            "sign_text": "",
        },
    },
}
goods_no_dict = tempData["data"]["goods_no_dict"]
params = []
token = "Bearer 18323b96c68234597b1fa8d10fecb6bbe45cadc3"
# onlineData = OnlineDataRequest(token)
# aigc_clazz = AIGCDataRequest(token)
# res = aigc_clazz.searchProgress(1120457)
# print("res", res)
