{ "cells": [ { "cell_type": "code", "execution_count": 34, "metadata": { "ExecuteTime": { "end_time": "2025-05-16T14:28:31.802210Z", "start_time": "2025-05-16T14:28:31.520519Z" } }, "outputs": [], "source": [ "import pandas as pd \n", "import requests \n", "from login_for_cookie import Vc\n", "import pendulum\n", "import json\n", "\n", "from utils.gtools import MySQLconnect \n", "from pathlib import Path\n", "from datetime import datetime\n", "cookie = Vc(user='robot1',pswd= 'a123456')\n", "headers = {\"Cookie\":cookie}" ] }, { "cell_type": "code", "execution_count": 35, "metadata": { "ExecuteTime": { "end_time": "2025-05-16T10:32:48.135119Z", "start_time": "2025-05-16T10:32:48.017568Z" } }, "outputs": [], "source": [ "def get_fs(row):\n", " try:\n", " print(row[\"采购单号\"])\n", " data = row[\"采购单号\"]\n", " buy_url = \"http://cp.baycheer.com/index.php?main=store_in_receive\"\n", "\n", " payload = {\n", " \"s_pid\": 2867159,\n", " \"s_suborderid\": \"\",\n", " \"pdt_standard_id\": \"\",\n", " \"s_store\": -1,\n", " \"s_status[0]\": 0,\n", " \"s_sort\": \"desc\",\n", " \"Submit\": \"查询\",\n", " \"synergy_sign\": -1,\n", " \"start_dep\": \"\",\n", " \"start_user\": \"\",\n", " \"to_dep\": \"\",\n", " \"to_user\": \"\",\n", " \"swebid\": 0,\n", " \"local_pdt_id\": 0,\n", " \"sadd_time\": \"\",\n", " \"sadd_time_end\": \"\",\n", " \"sreal_express_no\": \"\",\n", " \"sweb_id\": \"\",\n", " \"sof\": 0,\n", " \"soe\": 0,\n", " \"sod\": \"\",\n", " \"tsid\": -1,\n", " \"tsdid\": -1,\n", " \"tsst\": -1,\n", " \"order_cate\": -1,\n", " \"error_status\": -1,\n", " \"web_uid\": -1,\n", " \"team_id\": -1,\n", " \"handle\": -1,\n", " \"handle_uid\": 0,\n", " \"handle_time_start\": \"\",\n", " \"handle_time_end\": \"\",\n", " \"shiping_time_start\": \"\",\n", " \"shiping_time_end\": \"\",\n", " \"trade_time_start\": \"\",\n", " \"trade_time_end\": \"\",\n", " \"order_express_fee\": -1,\n", " \"web_type\": -1,\n", " \"shipping_type\": -1,\n", " \"maintain_add_time_s\": \"\",\n", " \"maintain_add_time_e\": \"\",\n", " \"maintain_comfirm_time_s\": \"\",\n", " \"maintain_comfirm_time_e\": \"\",\n", " \"dispense_user_id\": \"\",\n", " \"export_page\": 1\n", " }\n", " payload[\"s_pid\"] = data\n", " resp = requests.post(url = buy_url ,headers=headers , data=payload)\n", " buy_df_list = pd.read_html(resp.text,match=\"所属网站ID\")\n", " buy_df = buy_df_list[1]\n", " buy_df.columns = buy_df.loc[0,:]\n", " trade_id = buy_df[\"交易ID\"][1]\n", " #交易明细里头\n", " if trade_id ==\"无记录\":\n", " return pd.Series([None,None,None,None,None,None,None,None])\n", " trade_url = f\"http://cp.baycheer.com/index.php?main=store_tradelist_info&trade_id={trade_id}\"\n", " resp2 = requests.get(url = trade_url ,headers=headers )\n", " df_list2 = pd.read_html(resp2.text,match=\"下单发货时间\")\n", " df2 = df_list2[0]\n", " df2.columns = df2.loc[0,:]\n", " 下单发货时间 = int(df2.iloc[2,1][0].replace(\"--\",\"0\"))\n", " 维护发货时间 = int(df2.iloc[2,3].replace(\"--\",\"0\"))\n", " 支付时间 = pendulum.parse(df2.iloc[3,3])\n", " 最大发货时间 = 支付时间.add(days=max(下单发货时间,维护发货时间))\n", " #交易列表\n", " trade_list_url = f\"http://cp.baycheer.com/index.php?main=store_in_receive&navlist=trade_list&s_trade_id={trade_id}\"\n", " resp3 = requests.get(url = trade_list_url ,headers=headers )\n", " df_list3 = pd.read_html(resp3.text,match=\"涨幅\")\n", " df3 = df_list3[0]\n", " df3.columns = df3.loc[0,:]\n", " 交易平台 = df3[\"交易平台\"][1]\n", " 交易号 = df3[\"交易号\"][1]\n", " 交易平台订单号 = df3[\"交易平台订单号\"][1]\n", " \n", " return pd.Series([trade_id,下单发货时间, 维护发货时间,支付时间,最大发货时间,交易平台,交易号,交易平台订单号])\n", " except:\n", " return pd.Series([None,None,None,None,None,None,None,None])" ] }, { "cell_type": "code", "execution_count": 47, "metadata": {}, "outputs": [], "source": [ "resultdf_ori = pd.read_excel(r\"跟单测试源文件.xlsx\")\n", "#resultdf_ori = pd.read_excel(r\"跟单测试源文件.xlsx\")[[\"跟单任务ID\", \"采购单号\"]]\n", "# 扩展 get_fs" ] }, { "cell_type": "code", "execution_count": 49, "metadata": {}, "outputs": [ { "data": { "application/vnd.microsoft.datawrangler.viewer.v0+json": { "columns": [ { "name": "index", "rawType": "int64", "type": "integer" }, { "name": "跟单任务ID", "rawType": "int64", "type": "integer" }, { "name": "任务组", "rawType": "object", "type": "string" }, { "name": "指派人员", "rawType": "object", "type": "string" }, { "name": "跟单人员", "rawType": "float64", "type": "float" }, { "name": "创建时间", "rawType": "datetime64[ns]", "type": "datetime" }, { "name": "跟单时间", "rawType": "float64", "type": "float" }, { "name": "状态", "rawType": "object", "type": "string" }, { "name": "审核时间", "rawType": "float64", "type": "float" }, { "name": "审核人", "rawType": "float64", "type": "float" }, { "name": "包裹数量", "rawType": "int64", "type": "integer" }, { "name": "约定时间", "rawType": "float64", "type": "float" }, { "name": "约定发货地址", "rawType": "float64", "type": "float" }, { "name": "是否需要退货", "rawType": "object", "type": "string" }, { "name": "是否需要退款", "rawType": "object", "type": "string" }, { "name": "是否需要找货", "rawType": "object", "type": "string" }, { "name": "备注", "rawType": "float64", "type": "float" }, { "name": "任务类型", "rawType": "object", "type": "string" }, { "name": "采购单号", "rawType": "int64", "type": "integer" }, { "name": "该类型的跟单次数", "rawType": "int64", "type": "integer" } ], "ref": "3e728e3c-40c0-4182-9485-e423ac97a4cf", "rows": [ [ "0", "359974", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:08", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902619", "1" ], [ "1", "359970", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:08", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902615", "1" ], [ "2", "359964", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:08", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902607", "1" ], [ "3", "359957", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:07", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902596", "1" ], [ "4", "359952", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:07", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902588", "1" ], [ "5", "359948", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:06", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902584", "1" ], [ "6", "359945", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:06", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902579", "1" ], [ "7", "359942", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:06", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902574", "1" ], [ "8", "359939", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:05", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902570", "1" ], [ "9", "359935", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:05", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902565", "1" ], [ "10", "359932", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:05", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902561", "1" ], [ "11", "359926", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:04", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902553", "1" ], [ "12", "359923", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:04", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902550", "1" ], [ "13", "359920", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:04", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902547", "1" ], [ "14", "359916", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:03", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902543", "1" ], [ "15", "359906", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:03", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902531", "1" ], [ "16", "359902", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:02", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902527", "1" ], [ "17", "359899", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:02", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902524", "1" ], [ "18", "359893", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:01", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902517", "1" ], [ "19", "359885", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:01", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902504", "1" ], [ "20", "359879", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:00", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902496", "1" ], [ "21", "359876", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:00", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902491", "1" ], [ "22", "359871", "未发货-跟单组", "机器人1", null, "2025-05-30 09:13:00", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902484", "1" ], [ "23", "359865", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:59", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902476", "1" ], [ "24", "359862", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:59", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902473", "1" ], [ "25", "359858", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:58", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902469", "1" ], [ "26", "359854", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:58", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902465", "1" ], [ "27", "359851", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:58", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902462", "1" ], [ "28", "359847", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:58", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902458", "1" ], [ "29", "359841", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:57", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902452", "1" ], [ "30", "359838", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:57", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902449", "1" ], [ "31", "359829", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:56", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902438", "1" ], [ "32", "359825", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:56", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902432", "1" ], [ "33", "359822", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:56", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902429", "1" ], [ "34", "359818", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:55", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902424", "1" ], [ "35", "359814", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:55", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902420", "1" ], [ "36", "359810", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:55", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902416", "1" ], [ "37", "359807", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:55", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902413", "1" ], [ "38", "359804", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:54", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902410", "1" ], [ "39", "359801", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:54", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902407", "1" ], [ "40", "359797", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:54", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902401", "1" ], [ "41", "359793", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:53", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902396", "1" ], [ "42", "359788", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:53", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902390", "1" ], [ "43", "359784", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:53", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902386", "1" ], [ "44", "359781", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:52", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902382", "1" ], [ "45", "359767", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:52", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902368", "1" ], [ "46", "359763", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:51", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902364", "1" ], [ "47", "359758", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:51", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902357", "1" ], [ "48", "359752", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:51", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902351", "1" ], [ "49", "359748", "未发货-跟单组", "机器人1", null, "2025-05-30 09:12:50", null, "待处理", null, null, "0", null, null, "否", "否", "否", null, "已付款,待发货-未约定发货时间", "2902344", "1" ] ], "shape": { "columns": 19, "rows": 98 } }, "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
跟单任务ID任务组指派人员跟单人员创建时间跟单时间状态审核时间审核人包裹数量约定时间约定发货地址是否需要退货是否需要退款是否需要找货备注任务类型采购单号该类型的跟单次数
0359974未发货-跟单组机器人1NaN2025-05-30 09:13:08NaN待处理NaNNaN0NaNNaNNaN已付款,待发货-未约定发货时间29026191
1359970未发货-跟单组机器人1NaN2025-05-30 09:13:08NaN待处理NaNNaN0NaNNaNNaN已付款,待发货-未约定发货时间29026151
2359964未发货-跟单组机器人1NaN2025-05-30 09:13:08NaN待处理NaNNaN0NaNNaNNaN已付款,待发货-未约定发货时间29026071
3359957未发货-跟单组机器人1NaN2025-05-30 09:13:07NaN待处理NaNNaN0NaNNaNNaN已付款,待发货-未约定发货时间29025961
4359952未发货-跟单组机器人1NaN2025-05-30 09:13:07NaN待处理NaNNaN0NaNNaNNaN已付款,待发货-未约定发货时间29025881
............................................................
93359509未发货-跟单组机器人1NaN2025-05-30 09:12:35NaN待处理NaNNaN0NaNNaNNaN已付款,待发货-未约定发货时间29020951
94359506未发货-跟单组机器人1NaN2025-05-30 09:12:35NaN待处理NaNNaN0NaNNaNNaN已付款,待发货-未约定发货时间29020921
95359501未发货-跟单组机器人1NaN2025-05-30 09:12:35NaN待处理NaNNaN0NaNNaNNaN已付款,待发货-未约定发货时间29020871
96359488未发货-跟单组机器人1NaN2025-05-30 09:12:34NaN待处理NaNNaN0NaNNaNNaN已付款,待发货-未约定发货时间29019991
97359486未发货-跟单组机器人1NaN2025-05-30 09:12:34NaN待处理NaNNaN0NaNNaNNaN已付款,待发货-未约定发货时间29019971
\n", "

98 rows × 19 columns

\n", "
" ], "text/plain": [ " 跟单任务ID 任务组 指派人员 跟单人员 创建时间 跟单时间 状态 审核时间 审核人 \\\n", "0 359974 未发货-跟单组 机器人1 NaN 2025-05-30 09:13:08 NaN 待处理 NaN NaN \n", "1 359970 未发货-跟单组 机器人1 NaN 2025-05-30 09:13:08 NaN 待处理 NaN NaN \n", "2 359964 未发货-跟单组 机器人1 NaN 2025-05-30 09:13:08 NaN 待处理 NaN NaN \n", "3 359957 未发货-跟单组 机器人1 NaN 2025-05-30 09:13:07 NaN 待处理 NaN NaN \n", "4 359952 未发货-跟单组 机器人1 NaN 2025-05-30 09:13:07 NaN 待处理 NaN NaN \n", ".. ... ... ... ... ... ... ... ... ... \n", "93 359509 未发货-跟单组 机器人1 NaN 2025-05-30 09:12:35 NaN 待处理 NaN NaN \n", "94 359506 未发货-跟单组 机器人1 NaN 2025-05-30 09:12:35 NaN 待处理 NaN NaN \n", "95 359501 未发货-跟单组 机器人1 NaN 2025-05-30 09:12:35 NaN 待处理 NaN NaN \n", "96 359488 未发货-跟单组 机器人1 NaN 2025-05-30 09:12:34 NaN 待处理 NaN NaN \n", "97 359486 未发货-跟单组 机器人1 NaN 2025-05-30 09:12:34 NaN 待处理 NaN NaN \n", "\n", " 包裹数量 约定时间 约定发货地址 是否需要退货 是否需要退款 是否需要找货 备注 任务类型 采购单号 \\\n", "0 0 NaN NaN 否 否 否 NaN 已付款,待发货-未约定发货时间 2902619 \n", "1 0 NaN NaN 否 否 否 NaN 已付款,待发货-未约定发货时间 2902615 \n", "2 0 NaN NaN 否 否 否 NaN 已付款,待发货-未约定发货时间 2902607 \n", "3 0 NaN NaN 否 否 否 NaN 已付款,待发货-未约定发货时间 2902596 \n", "4 0 NaN NaN 否 否 否 NaN 已付款,待发货-未约定发货时间 2902588 \n", ".. ... ... ... ... ... ... .. ... ... \n", "93 0 NaN NaN 否 否 否 NaN 已付款,待发货-未约定发货时间 2902095 \n", "94 0 NaN NaN 否 否 否 NaN 已付款,待发货-未约定发货时间 2902092 \n", "95 0 NaN NaN 否 否 否 NaN 已付款,待发货-未约定发货时间 2902087 \n", "96 0 NaN NaN 否 否 否 NaN 已付款,待发货-未约定发货时间 2901999 \n", "97 0 NaN NaN 否 否 否 NaN 已付款,待发货-未约定发货时间 2901997 \n", "\n", " 该类型的跟单次数 \n", "0 1 \n", "1 1 \n", "2 1 \n", "3 1 \n", "4 1 \n", ".. ... \n", "93 1 \n", "94 1 \n", "95 1 \n", "96 1 \n", "97 1 \n", "\n", "[98 rows x 19 columns]" ] }, "execution_count": 49, "metadata": {}, "output_type": "execute_result" } ], "source": [ "resultdf_ori" ] }, { "cell_type": "code", "execution_count": 48, "metadata": {}, "outputs": [ { "data": { "application/vnd.microsoft.datawrangler.viewer.v0+json": { "columns": [ { "name": "index", "rawType": "int64", "type": "integer" }, { "name": "跟单任务ID", "rawType": "int64", "type": "integer" }, { "name": "采购单号", "rawType": "int64", "type": "integer" } ], "ref": "42fe9f0e-dc5f-47b3-a032-0f7f436a8166", "rows": [ [ "0", "359974", "2902619" ], [ "1", "359970", "2902615" ], [ "2", "359964", "2902607" ], [ "3", "359957", "2902596" ], [ "4", "359952", "2902588" ], [ "5", "359948", "2902584" ], [ "6", "359945", "2902579" ], [ "7", "359942", "2902574" ], [ "8", "359939", "2902570" ], [ "9", "359935", "2902565" ], [ "10", "359932", "2902561" ], [ "11", "359926", "2902553" ], [ "12", "359923", "2902550" ], [ "13", "359920", "2902547" ], [ "14", "359916", "2902543" ], [ "15", "359906", "2902531" ], [ "16", "359902", "2902527" ], [ "17", "359899", "2902524" ], [ "18", "359893", "2902517" ], [ "19", "359885", "2902504" ], [ "20", "359879", "2902496" ], [ "21", "359876", "2902491" ], [ "22", "359871", "2902484" ], [ "23", "359865", "2902476" ], [ "24", "359862", "2902473" ], [ "25", "359858", "2902469" ], [ "26", "359854", "2902465" ], [ "27", "359851", "2902462" ], [ "28", "359847", "2902458" ], [ "29", "359841", "2902452" ], [ "30", "359838", "2902449" ], [ "31", "359829", "2902438" ], [ "32", "359825", "2902432" ], [ "33", "359822", "2902429" ], [ "34", "359818", "2902424" ], [ "35", "359814", "2902420" ], [ "36", "359810", "2902416" ], [ "37", "359807", "2902413" ], [ "38", "359804", "2902410" ], [ "39", "359801", "2902407" ], [ "40", "359797", "2902401" ], [ "41", "359793", "2902396" ], [ "42", "359788", "2902390" ], [ "43", "359784", "2902386" ], [ "44", "359781", "2902382" ], [ "45", "359767", "2902368" ], [ "46", "359763", "2902364" ], [ "47", "359758", "2902357" ], [ "48", "359752", "2902351" ], [ "49", "359748", "2902344" ] ], "shape": { "columns": 2, "rows": 98 } }, "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
跟单任务ID采购单号
03599742902619
13599702902615
23599642902607
33599572902596
43599522902588
.........
933595092902095
943595062902092
953595012902087
963594882901999
973594862901997
\n", "

98 rows × 2 columns

\n", "
" ], "text/plain": [ " 跟单任务ID 采购单号\n", "0 359974 2902619\n", "1 359970 2902615\n", "2 359964 2902607\n", "3 359957 2902596\n", "4 359952 2902588\n", ".. ... ...\n", "93 359509 2902095\n", "94 359506 2902092\n", "95 359501 2902087\n", "96 359488 2901999\n", "97 359486 2901997\n", "\n", "[98 rows x 2 columns]" ] }, "execution_count": 48, "metadata": {}, "output_type": "execute_result" } ], "source": [ "resultdf" ] }, { "cell_type": "code", "execution_count": 32, "metadata": {}, "outputs": [ { "data": { "application/vnd.microsoft.datawrangler.viewer.v0+json": { "columns": [ { "name": "index", "rawType": "int64", "type": "integer" }, { "name": "交易ID", "rawType": "object", "type": "unknown" }, { "name": "下单发货时间", "rawType": "float64", "type": "float" }, { "name": "维护发货时间", "rawType": "float64", "type": "float" }, { "name": "支付时间", "rawType": "datetime64[ns, UTC]", "type": "unknown" }, { "name": "最大发货时间", "rawType": "datetime64[ns, UTC]", "type": "unknown" }, { "name": "交易平台", "rawType": "object", "type": "unknown" }, { "name": "交易号", "rawType": "object", "type": "unknown" }, { "name": "交易平台订单号", "rawType": "object", "type": "unknown" } ], "ref": "6bbcfc6d-5ce7-4209-95a5-92505322ae4b", "rows": [ [ "0", "1871514", "5.0", "0.0", "2025-05-29 17:49:40+00:00", "2025-06-03 17:49:40+00:00", "淘天", "2586394887255538788", "501566-187151429026196065" ], [ "1", "1871511", "5.0", "3.0", "2025-05-29 17:45:57+00:00", "2025-06-03 17:45:57+00:00", "1688", "2586866558699340655", "2586866558699340655" ], [ "2", "1871510", "4.0", "5.0", "2025-05-29 17:38:32+00:00", "2025-06-03 17:38:32+00:00", "淘天", "2586724428509538788", "501566-187151029026079158" ], [ "3", "1871507", "4.0", "2.0", "2025-05-29 17:31:48+00:00", "2025-06-02 17:31:48+00:00", "1688", "2586369831696340655", "2586369831696340655" ], [ "4", null, null, null, null, null, null, null, null ], [ "5", "1871487", "5.0", "0.0", "2025-05-29 17:28:01+00:00", "2025-06-03 17:28:01+00:00", "1688", "2586712116394340655", "2586712116394340655" ], [ "6", "1871489", "5.0", "0.0", "2025-05-29 17:27:31+00:00", "2025-06-03 17:27:31+00:00", "1688", "2586843158361340655", "2586843158361340655" ], [ "7", "1871504", "5.0", "0.0", "2025-05-29 18:00:00+00:00", "2025-06-03 18:00:00+00:00", "淘天", "2586391611043219261", "1748511690120" ], [ "8", "1871464", "4.0", "0.0", "2025-05-29 16:21:00+00:00", "2025-06-02 16:21:00+00:00", "淘天", "2586603684278538788", "501566-187146429025706383" ], [ "9", null, null, null, null, null, null, null, null ], [ "10", "1871446", "4.0", "0.0", "2025-05-29 16:07:18+00:00", "2025-06-02 16:07:18+00:00", "1688", "2586713774989340655", "2586713774989340655" ], [ "11", "1871492", "5.0", "0.0", "2025-05-29 17:58:47+00:00", "2025-06-03 17:58:47+00:00", "淘天", "2587422217794219261", "1748511214446" ], [ "12", null, null, null, null, null, null, null, null ], [ "13", null, null, null, null, null, null, null, null ], [ "14", "1871438", "5.0", "0.0", "2025-05-29 17:16:28+00:00", "2025-06-03 17:16:28+00:00", "淘天", "2586693324476219261", "1748510063327" ], [ "15", "1871398", "5.0", "0.0", "2025-05-29 15:24:42+00:00", "2025-06-03 15:24:42+00:00", "淘天", "2587229653074538788", "501566-187139829025312437" ], [ "16", "1871388", "4.0", "0.0", "2025-05-29 14:52:40+00:00", "2025-06-02 14:52:40+00:00", "1688", "2586139179096340655", "2586139179096340655" ], [ "17", "1871418", "5.0", "0.0", "2025-05-29 16:52:00+00:00", "2025-06-03 16:52:00+00:00", "淘天", "2587321165625219261", "1748507467551" ], [ "18", null, null, null, null, null, null, null, null ], [ "19", "1871417", "5.0", "0.0", "2025-05-29 16:59:34+00:00", "2025-06-03 16:59:34+00:00", "淘天", "2586615528437219261", "1748507336231" ], [ "20", "1871353", "5.0", "0.0", "2025-05-29 13:50:02+00:00", "2025-06-03 13:50:02+00:00", "淘天", "2587088497261538788", "501566-187135329024968677" ], [ "21", "1871348", "5.0", "0.0", "2025-05-29 13:38:38+00:00", "2025-06-03 13:38:38+00:00", "淘天", "2587071793982538788", "501566-187134829024913484" ], [ "22", "1871345", "5.0", "0.0", "2025-05-29 13:37:24+00:00", "2025-06-03 13:37:24+00:00", "1688", "2586508466020340655", "2586508466020340655" ], [ "23", "1871336", "4.0", "0.0", "2025-05-29 13:16:17+00:00", "2025-06-02 13:16:17+00:00", "淘天", "2586347292443538788", "501566-187133629024764267" ], [ "24", "1871333", "5.0", "0.0", "2025-05-29 13:13:58+00:00", "2025-06-03 13:13:58+00:00", "1688", "2586340380550340655", "2586340380550340655" ], [ "25", "1871376", "4.0", "2.0", "2025-05-29 14:39:00+00:00", "2025-06-02 14:39:00+00:00", "1688", "2586448056601340655", "2586448056601340655" ], [ "26", "1871328", "5.0", "0.0", "2025-05-29 13:08:21+00:00", "2025-06-03 13:08:21+00:00", "淘天", "2585944419692538788", "501566-187132829024652036" ], [ "27", "1871325", "5.0", "0.0", "2025-05-29 13:13:12+00:00", "2025-06-03 13:13:12+00:00", "1688", "2586259956829340655", "2586259956829340655" ], [ "28", "1871321", "5.0", "0.0", "2025-05-29 13:09:21+00:00", "2025-06-03 13:09:21+00:00", "淘天", "2586950761285538788", "501566-187132129024582904" ], [ "29", "1871427", "5.0", "0.0", "2025-05-29 17:53:42+00:00", "2025-06-03 17:53:42+00:00", "1688", "2587394317530340655", "2587394317530340655" ], [ "30", "1871311", "3.0", "0.0", "2025-05-29 15:24:37+00:00", "2025-06-01 15:24:37+00:00", "淘天", "2587197865978219261", "1748502201757" ], [ "31", "1871279", "5.0", "0.0", "2025-05-29 13:22:05+00:00", "2025-06-03 13:22:05+00:00", "1688", "2586172152427340655", "2586172152427340655" ], [ "32", "1871275", "5.0", "0.0", "2025-05-29 11:32:47+00:00", "2025-06-03 11:32:47+00:00", "淘天", "2586173376131538788", "501566-187127529024321722" ], [ "33", "1871488", "4.0", "3.0", "2025-05-29 17:24:19+00:00", "2025-06-02 17:24:19+00:00", "淘天", "2586701748701538788", "501566-187148829024292162" ], [ "34", "1871271", "5.0", "0.0", "2025-05-29 15:12:41+00:00", "2025-06-03 15:12:41+00:00", "淘天", "2586574490907219261", "1748500080517" ], [ "35", "1871264", "5.0", "0.0", "2025-05-29 13:46:25+00:00", "2025-06-03 13:46:25+00:00", "1688", "2587078993310340655", "2587078993310340655" ], [ "36", "1871237", "5.0", "0.0", "2025-05-29 11:39:23+00:00", "2025-06-03 11:39:23+00:00", "1688", "2586290990951340655", "2586290990951340655" ], [ "37", "1871285", "5.0", "0.0", "2025-05-29 17:01:31+00:00", "2025-06-03 17:01:31+00:00", "1688", "2586572256272340655", "2586572256272340655" ], [ "38", null, null, null, null, null, null, null, null ], [ "39", null, null, null, null, null, null, null, null ], [ "40", null, null, null, null, null, null, null, null ], [ "41", "1871229", "5.0", "0.0", "2025-05-29 11:12:41+00:00", "2025-06-03 11:12:41+00:00", "1688", "2586266222731340655", "2586266222731340655" ], [ "42", "1871224", "5.0", "0.0", "2025-05-29 11:04:09+00:00", "2025-06-03 11:04:09+00:00", "1688", "2586250310081340655", "2586250310081340655" ], [ "43", "1871494", "5.0", "3.0", "2025-05-29 17:55:54+00:00", "2025-06-03 17:55:54+00:00", "1688", "2587438345355340655", "2587438345355340655" ], [ "44", "1871211", "5.0", "0.0", "2025-05-29 10:53:54+00:00", "2025-06-03 10:53:54+00:00", "1688", "2586085464690340655", "2586085464690340655" ], [ "45", null, null, null, null, null, null, null, null ], [ "46", "1871217", "5.0", "0.0", "2025-05-29 13:11:46+00:00", "2025-06-03 13:11:46+00:00", "淘天", "4361308743534622839", "1748495352189" ], [ "47", "1871423", "5.0", "5.0", "2025-05-29 17:27:11+00:00", "2025-06-03 17:27:11+00:00", "1688", "2587381285816340655", "2587381285816340655" ], [ "48", "1871181", "5.0", "0.0", "2025-05-29 10:30:13+00:00", "2025-06-03 10:30:13+00:00", "1688", "2585723127206340655", "2585723127206340655" ], [ "49", "1871175", "5.0", "0.0", "2025-05-29 10:42:17+00:00", "2025-06-03 10:42:17+00:00", "淘天", "2586047844742538788", "501566-187117529023447247" ] ], "shape": { "columns": 8, "rows": 118 } }, "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
交易ID下单发货时间维护发货时间支付时间最大发货时间交易平台交易号交易平台订单号
018715145.00.02025-05-29 17:49:40+00:002025-06-03 17:49:40+00:00淘天2586394887255538788501566-187151429026196065
118715115.03.02025-05-29 17:45:57+00:002025-06-03 17:45:57+00:00168825868665586993406552586866558699340655
218715104.05.02025-05-29 17:38:32+00:002025-06-03 17:38:32+00:00淘天2586724428509538788501566-187151029026079158
318715074.02.02025-05-29 17:31:48+00:002025-06-02 17:31:48+00:00168825863698316963406552586369831696340655
4NoneNaNNaNNaTNaTNoneNoneNone
...........................
113NoneNaNNaNNaTNaTNoneNoneNone
114NoneNaNNaNNaTNaTNoneNoneNone
115NoneNaNNaNNaTNaTNoneNoneNone
116NoneNaNNaNNaTNaTNoneNoneNone
117NoneNaNNaNNaTNaTNoneNoneNone
\n", "

118 rows × 8 columns

\n", "
" ], "text/plain": [ " 交易ID 下单发货时间 维护发货时间 支付时间 \\\n", "0 1871514 5.0 0.0 2025-05-29 17:49:40+00:00 \n", "1 1871511 5.0 3.0 2025-05-29 17:45:57+00:00 \n", "2 1871510 4.0 5.0 2025-05-29 17:38:32+00:00 \n", "3 1871507 4.0 2.0 2025-05-29 17:31:48+00:00 \n", "4 None NaN NaN NaT \n", ".. ... ... ... ... \n", "113 None NaN NaN NaT \n", "114 None NaN NaN NaT \n", "115 None NaN NaN NaT \n", "116 None NaN NaN NaT \n", "117 None NaN NaN NaT \n", "\n", " 最大发货时间 交易平台 交易号 \\\n", "0 2025-06-03 17:49:40+00:00 淘天 2586394887255538788 \n", "1 2025-06-03 17:45:57+00:00 1688 2586866558699340655 \n", "2 2025-06-03 17:38:32+00:00 淘天 2586724428509538788 \n", "3 2025-06-02 17:31:48+00:00 1688 2586369831696340655 \n", "4 NaT None None \n", ".. ... ... ... \n", "113 NaT None None \n", "114 NaT None None \n", "115 NaT None None \n", "116 NaT None None \n", "117 NaT None None \n", "\n", " 交易平台订单号 \n", "0 501566-187151429026196065 \n", "1 2586866558699340655 \n", "2 501566-187151029026079158 \n", "3 2586369831696340655 \n", "4 None \n", ".. ... \n", "113 None \n", "114 None \n", "115 None \n", "116 None \n", "117 None \n", "\n", "[118 rows x 8 columns]" ] }, "execution_count": 32, "metadata": {}, "output_type": "execute_result" } ], "source": [ "fs_cols" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fs_cols = resultdf.apply(lambda x: get_fs(x), axis=1, result_type=\"expand\")" ] }, { "cell_type": "code", "execution_count": 39, "metadata": {}, "outputs": [], "source": [ "fs_cols.columns = [\"交易ID\",'下单发货时间', '维护发货时间','支付时间','最大发货时间','交易平台','交易号','交易平台订单号']\n", "resultdf = pd.concat([resultdf, fs_cols], axis=1)" ] }, { "cell_type": "code", "execution_count": 40, "metadata": {}, "outputs": [ { "data": { "application/vnd.microsoft.datawrangler.viewer.v0+json": { "columns": [ { "name": "index", "rawType": "int64", "type": "integer" }, { "name": "跟单任务ID", "rawType": "int64", "type": "integer" }, { "name": "采购单号", "rawType": "int64", "type": "integer" }, { "name": "交易ID", "rawType": "object", "type": "string" }, { "name": "下单发货时间", "rawType": "float64", "type": "float" }, { "name": "维护发货时间", "rawType": "float64", "type": "float" }, { "name": "支付时间", "rawType": "datetime64[ns, UTC]", "type": "unknown" }, { "name": "最大发货时间", "rawType": "datetime64[ns, UTC]", "type": "unknown" }, { "name": "交易平台", "rawType": "object", "type": "string" }, { "name": "交易号", "rawType": "object", "type": "string" }, { "name": "交易平台订单号", "rawType": "object", "type": "string" } ], "ref": "cb539345-eef0-47c0-b4c1-578a3eb97ce2", "rows": [ [ "0", "359974", "2902619", "1871514", "5.0", "0.0", "2025-05-29 17:49:40+00:00", "2025-06-03 17:49:40+00:00", "淘天", "2586394887255538788", "501566-187151429026196065" ], [ "1", "359970", "2902615", "1871511", "5.0", "3.0", "2025-05-29 17:45:57+00:00", "2025-06-03 17:45:57+00:00", "1688", "2586866558699340655", "2586866558699340655" ] ], "shape": { "columns": 10, "rows": 2 } }, "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
跟单任务ID采购单号交易ID下单发货时间维护发货时间支付时间最大发货时间交易平台交易号交易平台订单号
0359974290261918715145.00.02025-05-29 17:49:40+00:002025-06-03 17:49:40+00:00淘天2586394887255538788501566-187151429026196065
1359970290261518715115.03.02025-05-29 17:45:57+00:002025-06-03 17:45:57+00:00168825868665586993406552586866558699340655
\n", "
" ], "text/plain": [ " 跟单任务ID 采购单号 交易ID 下单发货时间 维护发货时间 支付时间 \\\n", "0 359974 2902619 1871514 5.0 0.0 2025-05-29 17:49:40+00:00 \n", "1 359970 2902615 1871511 5.0 3.0 2025-05-29 17:45:57+00:00 \n", "\n", " 最大发货时间 交易平台 交易号 \\\n", "0 2025-06-03 17:49:40+00:00 淘天 2586394887255538788 \n", "1 2025-06-03 17:45:57+00:00 1688 2586866558699340655 \n", "\n", " 交易平台订单号 \n", "0 501566-187151429026196065 \n", "1 2586866558699340655 " ] }, "execution_count": 40, "metadata": {}, "output_type": "execute_result" } ], "source": [ "resultdf[:2]" ] }, { "cell_type": "code", "execution_count": 43, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "状态码: 201\n", "响应内容: {'message': '录入成功'}\n" ] } ], "source": [ "data = resultdf[:2].to_dict(orient='records')\n", "headers = {\"Content-Type\": \"application/json; charset=utf-8\"}\n", "url = \"http://192.168.100.44/rpaapi/followup\" \n", "response = requests.post(url, headers=headers, data=json.dumps(data))\n", "print(\"状态码:\", response.status_code)\n", "print(\"响应内容:\", response.json())" ] }, { "cell_type": "code", "execution_count": 45, "metadata": {}, "outputs": [ { "data": { "application/vnd.microsoft.datawrangler.viewer.v0+json": { "columns": [ { "name": "index", "rawType": "int64", "type": "integer" }, { "name": "跟单任务ID", "rawType": "int64", "type": "integer" }, { "name": "采购单号", "rawType": "int64", "type": "integer" }, { "name": "交易ID", "rawType": "object", "type": "unknown" }, { "name": "下单发货时间", "rawType": "float64", "type": "float" }, { "name": "维护发货时间", "rawType": "float64", "type": "float" }, { "name": "支付时间", "rawType": "object", "type": "unknown" }, { "name": "最大发货时间", "rawType": "object", "type": "unknown" }, { "name": "交易平台", "rawType": "object", "type": "unknown" }, { "name": "交易号", "rawType": "object", "type": "unknown" }, { "name": "交易平台订单号", "rawType": "object", "type": "unknown" }, { "name": "pay_date", "rawType": "object", "type": "unknown" } ], "ref": "149160c6-811d-4ecb-b083-f13e17485053", "rows": [ [ "0", "359974", "2902619", "1871514", "5.0", "0.0", "2025-05-29", "2025-06-03", "淘天", "2586394887255538788", "501566-187151429026196065", "2025-05-29" ], [ "1", "359970", "2902615", "1871511", "5.0", "3.0", "2025-05-29", "2025-06-03", "1688", "2586866558699340655", "2586866558699340655", "2025-05-29" ], [ "2", "359964", "2902607", "1871510", "4.0", "5.0", "2025-05-29", "2025-06-03", "淘天", "2586724428509538788", "501566-187151029026079158", "2025-05-29" ], [ "3", "359957", "2902596", "1871507", "4.0", "2.0", "2025-05-29", "2025-06-02", "1688", "2586369831696340655", "2586369831696340655", "2025-05-29" ], [ "4", "359952", "2902588", null, null, null, null, null, null, null, null, null ], [ "5", "359948", "2902584", "1871487", "5.0", "0.0", "2025-05-29", "2025-06-03", "1688", "2586712116394340655", "2586712116394340655", "2025-05-29" ], [ "6", "359945", "2902579", "1871489", "5.0", "0.0", "2025-05-29", "2025-06-03", "1688", "2586843158361340655", "2586843158361340655", "2025-05-29" ], [ "7", "359942", "2902574", "1871504", "5.0", "0.0", "2025-05-29", "2025-06-03", "淘天", "2586391611043219261", "1748511690120", "2025-05-29" ], [ "8", "359939", "2902570", "1871464", "4.0", "0.0", "2025-05-29", "2025-06-02", "淘天", "2586603684278538788", "501566-187146429025706383", "2025-05-29" ], [ "9", "359935", "2902565", null, null, null, null, null, null, null, null, null ], [ "10", "359932", "2902561", "1871446", "4.0", "0.0", "2025-05-29", "2025-06-02", "1688", "2586713774989340655", "2586713774989340655", "2025-05-29" ], [ "11", "359926", "2902553", "1871492", "5.0", "0.0", "2025-05-29", "2025-06-03", "淘天", "2587422217794219261", "1748511214446", "2025-05-29" ], [ "12", "359923", "2902550", null, null, null, null, null, null, null, null, null ], [ "13", "359920", "2902547", null, null, null, null, null, null, null, null, null ], [ "14", "359916", "2902543", "1871438", "5.0", "0.0", "2025-05-29", "2025-06-03", "淘天", "2586693324476219261", "1748510063327", "2025-05-29" ], [ "15", "359906", "2902531", "1871398", "5.0", "0.0", "2025-05-29", "2025-06-03", "淘天", "2587229653074538788", "501566-187139829025312437", "2025-05-29" ], [ "16", "359902", "2902527", "1871388", "4.0", "0.0", "2025-05-29", "2025-06-02", "1688", "2586139179096340655", "2586139179096340655", "2025-05-29" ], [ "17", "359899", "2902524", "1871418", "5.0", "0.0", "2025-05-29", "2025-06-03", "淘天", "2587321165625219261", "1748507467551", "2025-05-29" ], [ "18", "359893", "2902517", null, null, null, null, null, null, null, null, null ], [ "19", "359885", "2902504", "1871417", "5.0", "0.0", "2025-05-29", "2025-06-03", "淘天", "2586615528437219261", "1748507336231", "2025-05-29" ], [ "20", "359879", "2902496", "1871353", "5.0", "0.0", "2025-05-29", "2025-06-03", "淘天", "2587088497261538788", "501566-187135329024968677", "2025-05-29" ], [ "21", "359876", "2902491", "1871348", "5.0", "0.0", "2025-05-29", "2025-06-03", "淘天", "2587071793982538788", "501566-187134829024913484", "2025-05-29" ], [ "22", "359871", "2902484", "1871345", "5.0", "0.0", "2025-05-29", "2025-06-03", "1688", "2586508466020340655", "2586508466020340655", "2025-05-29" ], [ "23", "359865", "2902476", "1871336", "4.0", "0.0", "2025-05-29", "2025-06-02", "淘天", "2586347292443538788", "501566-187133629024764267", "2025-05-29" ], [ "24", "359862", "2902473", "1871333", "5.0", "0.0", "2025-05-29", "2025-06-03", "1688", "2586340380550340655", "2586340380550340655", "2025-05-29" ], [ "25", "359858", "2902469", "1871376", "4.0", "2.0", "2025-05-29", "2025-06-02", "1688", "2586448056601340655", "2586448056601340655", "2025-05-29" ], [ "26", "359854", "2902465", "1871328", "5.0", "0.0", "2025-05-29", "2025-06-03", "淘天", "2585944419692538788", "501566-187132829024652036", "2025-05-29" ], [ "27", "359851", "2902462", "1871325", "5.0", "0.0", "2025-05-29", "2025-06-03", "1688", "2586259956829340655", "2586259956829340655", "2025-05-29" ], [ "28", "359847", "2902458", "1871321", "5.0", "0.0", "2025-05-29", "2025-06-03", "淘天", "2586950761285538788", "501566-187132129024582904", "2025-05-29" ], [ "29", "359841", "2902452", "1871427", "5.0", "0.0", "2025-05-29", "2025-06-03", "1688", "2587394317530340655", "2587394317530340655", "2025-05-29" ], [ "30", "359838", "2902449", "1871311", "3.0", "0.0", "2025-05-29", "2025-06-01", "淘天", "2587197865978219261", "1748502201757", "2025-05-29" ], [ "31", "359829", "2902438", "1871279", "5.0", "0.0", "2025-05-29", "2025-06-03", "1688", "2586172152427340655", "2586172152427340655", "2025-05-29" ], [ "32", "359825", "2902432", "1871275", "5.0", "0.0", "2025-05-29", "2025-06-03", "淘天", "2586173376131538788", "501566-187127529024321722", "2025-05-29" ], [ "33", "359822", "2902429", "1871488", "4.0", "3.0", "2025-05-29", "2025-06-02", "淘天", "2586701748701538788", "501566-187148829024292162", "2025-05-29" ], [ "34", "359818", "2902424", "1871271", "5.0", "0.0", "2025-05-29", "2025-06-03", "淘天", "2586574490907219261", "1748500080517", "2025-05-29" ], [ "35", "359814", "2902420", "1871264", "5.0", "0.0", "2025-05-29", "2025-06-03", "1688", "2587078993310340655", "2587078993310340655", "2025-05-29" ], [ "36", "359810", "2902416", "1871237", "5.0", "0.0", "2025-05-29", "2025-06-03", "1688", "2586290990951340655", "2586290990951340655", "2025-05-29" ], [ "37", "359807", "2902413", "1871285", "5.0", "0.0", "2025-05-29", "2025-06-03", "1688", "2586572256272340655", "2586572256272340655", "2025-05-29" ], [ "38", "359804", "2902410", null, null, null, null, null, null, null, null, null ], [ "39", "359801", "2902407", null, null, null, null, null, null, null, null, null ], [ "40", "359797", "2902401", null, null, null, null, null, null, null, null, null ], [ "41", "359793", "2902396", "1871229", "5.0", "0.0", "2025-05-29", "2025-06-03", "1688", "2586266222731340655", "2586266222731340655", "2025-05-29" ], [ "42", "359788", "2902390", "1871224", "5.0", "0.0", "2025-05-29", "2025-06-03", "1688", "2586250310081340655", "2586250310081340655", "2025-05-29" ], [ "43", "359784", "2902386", "1871494", "5.0", "3.0", "2025-05-29", "2025-06-03", "1688", "2587438345355340655", "2587438345355340655", "2025-05-29" ], [ "44", "359781", "2902382", "1871211", "5.0", "0.0", "2025-05-29", "2025-06-03", "1688", "2586085464690340655", "2586085464690340655", "2025-05-29" ], [ "45", "359767", "2902368", null, null, null, null, null, null, null, null, null ], [ "46", "359763", "2902364", "1871217", "5.0", "0.0", "2025-05-29", "2025-06-03", "淘天", "4361308743534622839", "1748495352189", "2025-05-29" ], [ "47", "359758", "2902357", "1871423", "5.0", "5.0", "2025-05-29", "2025-06-03", "1688", "2587381285816340655", "2587381285816340655", "2025-05-29" ], [ "48", "359752", "2902351", "1871181", "5.0", "0.0", "2025-05-29", "2025-06-03", "1688", "2585723127206340655", "2585723127206340655", "2025-05-29" ], [ "49", "359748", "2902344", "1871175", "5.0", "0.0", "2025-05-29", "2025-06-03", "淘天", "2586047844742538788", "501566-187117529023447247", "2025-05-29" ] ], "shape": { "columns": 11, "rows": 98 } }, "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
跟单任务ID采购单号交易ID下单发货时间维护发货时间支付时间最大发货时间交易平台交易号交易平台订单号pay_date
0359974290261918715145.00.02025-05-292025-06-03淘天2586394887255538788501566-1871514290261960652025-05-29
1359970290261518715115.03.02025-05-292025-06-031688258686655869934065525868665586993406552025-05-29
2359964290260718715104.05.02025-05-292025-06-03淘天2586724428509538788501566-1871510290260791582025-05-29
3359957290259618715074.02.02025-05-292025-06-021688258636983169634065525863698316963406552025-05-29
43599522902588NoneNaNNaNNaNNaNNoneNoneNoneNaN
....................................
93359509290209518710805.00.02025-05-292025-06-03淘天436100835946462283917484855885962025-05-29
94359506290209218708744.00.02025-05-292025-06-02淘天2585831448930538788501566-1870874290209243402025-05-29
95359501290208718714294.05.02025-05-292025-06-03淘天2586690554346538788501566-1871429290208715762025-05-29
96359488290199918714195.05.02025-05-292025-06-031688258737541737934065525873754173793406552025-05-29
97359486290199718714195.05.02025-05-292025-06-031688258737541737934065525873754173793406552025-05-29
\n", "

98 rows × 11 columns

\n", "
" ], "text/plain": [ " 跟单任务ID 采购单号 交易ID 下单发货时间 维护发货时间 支付时间 最大发货时间 交易平台 \\\n", "0 359974 2902619 1871514 5.0 0.0 2025-05-29 2025-06-03 淘天 \n", "1 359970 2902615 1871511 5.0 3.0 2025-05-29 2025-06-03 1688 \n", "2 359964 2902607 1871510 4.0 5.0 2025-05-29 2025-06-03 淘天 \n", "3 359957 2902596 1871507 4.0 2.0 2025-05-29 2025-06-02 1688 \n", "4 359952 2902588 None NaN NaN NaN NaN None \n", ".. ... ... ... ... ... ... ... ... \n", "93 359509 2902095 1871080 5.0 0.0 2025-05-29 2025-06-03 淘天 \n", "94 359506 2902092 1870874 4.0 0.0 2025-05-29 2025-06-02 淘天 \n", "95 359501 2902087 1871429 4.0 5.0 2025-05-29 2025-06-03 淘天 \n", "96 359488 2901999 1871419 5.0 5.0 2025-05-29 2025-06-03 1688 \n", "97 359486 2901997 1871419 5.0 5.0 2025-05-29 2025-06-03 1688 \n", "\n", " 交易号 交易平台订单号 pay_date \n", "0 2586394887255538788 501566-187151429026196065 2025-05-29 \n", "1 2586866558699340655 2586866558699340655 2025-05-29 \n", "2 2586724428509538788 501566-187151029026079158 2025-05-29 \n", "3 2586369831696340655 2586369831696340655 2025-05-29 \n", "4 None None NaN \n", ".. ... ... ... \n", "93 4361008359464622839 1748485588596 2025-05-29 \n", "94 2585831448930538788 501566-187087429020924340 2025-05-29 \n", "95 2586690554346538788 501566-187142929020871576 2025-05-29 \n", "96 2587375417379340655 2587375417379340655 2025-05-29 \n", "97 2587375417379340655 2587375417379340655 2025-05-29 \n", "\n", "[98 rows x 11 columns]" ] }, "execution_count": 45, "metadata": {}, "output_type": "execute_result" } ], "source": [ "resultdf" ] }, { "cell_type": "code", "execution_count": 44, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[{'跟单任务ID': 359974,\n", " '采购单号': 2902619,\n", " '交易ID': '1871514',\n", " '下单发货时间': 5.0,\n", " '维护发货时间': 0.0,\n", " '支付时间': '2025-05-29',\n", " '最大发货时间': '2025-06-03',\n", " '交易平台': '淘天',\n", " '交易号': '2586394887255538788',\n", " '交易平台订单号': '501566-187151429026196065',\n", " 'pay_date': '2025-05-29'},\n", " {'跟单任务ID': 359970,\n", " '采购单号': 2902615,\n", " '交易ID': '1871511',\n", " '下单发货时间': 5.0,\n", " '维护发货时间': 3.0,\n", " '支付时间': '2025-05-29',\n", " '最大发货时间': '2025-06-03',\n", " '交易平台': '1688',\n", " '交易号': '2586866558699340655',\n", " '交易平台订单号': '2586866558699340655',\n", " 'pay_date': '2025-05-29'}]" ] }, "execution_count": 44, "metadata": {}, "output_type": "execute_result" } ], "source": [ "data" ] }, { "cell_type": "code", "execution_count": 21, "metadata": {}, "outputs": [], "source": [ "resultdf = pd.concat([resultdf, fs_cols], axis=1)" ] }, { "cell_type": "code", "execution_count": 42, "metadata": {}, "outputs": [], "source": [ "for col in ['支付时间', '最大发货时间']:\n", " resultdf[col] = pd.to_datetime(resultdf[col], errors='coerce')\n", " resultdf[col] = resultdf[col].dt.strftime('%Y-%m-%d')\n", "resultdf['pay_date'] = resultdf['支付时间']" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "ExecuteTime": { "end_time": "2025-05-16T10:38:08.275276Z", "start_time": "2025-05-16T10:34:21.240914Z" } }, "outputs": [], "source": [ "resultdf = pd.read_excel(r\"跟单测试源文件.xlsx\")[[\"跟单任务ID\", \"采购单号\"]]\n", "# 扩展 get_fs\n", "fs_cols = resultdf.apply(lambda x: get_fs(x), axis=1, result_type=\"expand\")\n", "fs_cols.columns = [\"交易ID\",'下单发货时间', '维护发货时间','支付时间','最大发货时间','交易平台','交易号','交易平台订单号']\n", "resultdf = pd.concat([resultdf, fs_cols], axis=1)\n", "# 处理日期\n", "for col in ['支付时间', '最大发货时间']:\n", " resultdf[col] = pd.to_datetime(resultdf[col], errors='coerce')\n", " resultdf[col] = resultdf[col].dt.strftime('%Y-%m-%d')\n", "resultdf['pay_date'] = resultdf['支付时间']\n", "# POST\n", "data = resultdf.to_dict(orient='records')\n", "headers = {\"Content-Type\": \"application/json; charset=utf-8\"}\n", "url = \"http://192.168.100.44/rpaapi/followup\" \n", "response = requests.post(url, headers=headers, data=json.dumps(data))\n", "print(\"状态码:\", response.status_code)\n", "print(\"响应内容:\", response.json())\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "ExecuteTime": { "end_time": "2025-05-16T10:39:03.196709Z", "start_time": "2025-05-16T10:38:50.994916Z" } }, "outputs": [], "source": [ "mdm = MySQLconnect(\"mdm\")\n", "#对数据库进行创建TASK,这个应该放在后端\n", "def create_first_task():\n", " all_sql = \"select * from tw_order_follow_up WHERE platform = '淘天' AND length(trade_platform_order_num) >=12\"\n", " df = pd.read_sql(all_sql, mdm.engine())\n", " for idx,row in df.iterrows():\n", " trade_id = row[\"trade_id\"]\n", " max_logis_date_mmdd =row[\"max_logis_date\"]\n", " mmdd = f\"{max_logis_date_mmdd.month}月{max_logis_date_mmdd.day}日\"\n", " send_text = f\"平台交易号:{trade_id},你好,请问最快什么时候发货,{mmdd}前可以发货吗?\"\n", " task_url = \"http://192.168.100.44/rpaapi/taskcreate\" \n", " headers = {\n", " \"Content-Type\": \"application/json; charset=utf-8\", # 指定 UTF-8 编码\n", " \"Other-Header\": \"value\"\n", " }\n", "\n", " response = requests.post(url=task_url, headers=headers, data=json.dumps({\"task_type\":\"跟单\",\"type_id\":row[\"cpmaso_task_id\"],\"send_content\":send_text,\"level\":\"level1\"}))\n", "create_first_task()\n", "\n", "#这里是写到影刀里面的\n", "def get_tw_url(task_id):\n", " url = f\"http://192.168.100.44/rpaapi/get_url/{task_id}\"\n", " response = requests.get(url=url).json()\n", " return response\n", "\n", "def finish_task(task_id,task_status,session_id):\n", " task_url = \"http://192.168.100.44/rpaapi/taskfinish\" \n", " response = requests.post(url=task_url, headers=headers, data=json.dumps({\"task_id\":task_id,\"task_status\":task_status,\"session_id\":session_id}))\n", " return response.json()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "#以下内容也全都写到影刀里面\n", "file = Path(r\"C:\\Users\\Admin\\Desktop\\taoworldtask.txt\")\n", "def html_to_db(html): # -> list[dict]\n", " tree = etree.HTML(html)\n", " container = tree.xpath(\"//*[contains(@class, 'IMChat--ww_container--rcKMqZZ')]\")[0]\n", " shopname = container.xpath(\"//*[contains(@class, 'IMChat--ww_header--qyQJ4Lp')]/text()\")[0].strip()\n", " message_item_lines = container.xpath(\"//*[contains(@class, 'message-item-lin')]\")\n", "\n", " results = []\n", " for msg in message_item_lines:\n", " message_id = msg.get('id', '')\n", " \n", " # 昵称\n", " nick_x = msg.xpath(\".//div[contains(@class, 'nick')]/text()\")\n", " nick = nick_x[0].strip() if nick_x else ''\n", " \n", " # 时间\n", " time_x = msg.xpath(\".//div[contains(@class, 'time')]/text()\")\n", " time_str = time_x[0].strip() if time_x else ''\n", " try:\n", " time = datetime.strptime(time_str, \"%Y-%m-%d %H:%M:%S\") if time_str else None\n", " except ValueError:\n", " time = None\n", "\n", " # 内容或图片\n", " content_x = msg.xpath(\".//pre[contains(@class, 'edit')]/text()\")\n", " content = ','.join(content_x).strip() if content_x else ''\n", " img_x = msg.xpath(\".//img[contains(@class, 'imui-msg-img')]/@src\")\n", " if img_x:\n", " content = img_x[0] # 可考虑记录 chat_type='image'\n", "\n", " result = {\n", " 'id': message_id,\n", " 'nick': nick,\n", " 'time': time.strftime(\"%Y-%m-%d %H:%M:%S\") if time else None,\n", " 'content': content\n", " }\n", " results.append(result)\n", " return {\n", " \"shopname\": shopname,\n", " \"messages\": results\n", " }\n", "\n", "def upload_msg(msg_list, account, create_chat_id=''):\n", " url = \"http://192.168.100.44/rpaapi/upload_msg\"\n", "\n", " payload = {\n", " \"shopname\": msg_list[\"shopname\"],\n", " \"messages\": msg_list[\"messages\"],\n", " \"account\": account,\n", " \"creata_chat_id\": create_chat_id # 如果为空,表示接收方;否则为发送者创建会话用\n", " }\n", "\n", " headers = {\n", " \"Content-Type\": \"application/json\"\n", " }\n", "\n", " try:\n", " resp = requests.post(url, headers=headers, data=json.dumps(payload))\n", " if resp.status_code == 200:\n", " print(\"上传成功\")\n", " else:\n", " print(f\"上传失败: {resp.status_code} - {resp.text}\")\n", " except Exception as e:\n", " print(f\"请求异常: {e}\")\n", "\n", "msg_data = html_to_db(file.read_text(encoding='utf-8'))\n", "msg_data1 = msg_data.copy()\n", "msg_data1[\"messages\"] = msg_data[\"messages\"][:10]\n", "upload_msg(msg_data1, account=\"t-2217567810350-0\", create_chat_id=\"3469772970637.PNM\")\n", "msg_data2 = msg_data.copy()\n", "msg_data2[\"messages\"] = msg_data[\"messages\"][5:]\n", "upload_msg(msg_data2, account=\"t-2217567810350-0\")" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import os\n", "from http import HTTPStatus\n", "from dashscope import Application\n", "response = Application.call(\n", " # 若没有配置环境变量,可用百炼API Key将下行替换为:api_key=\"sk-xxx\"。但不建议在生产环境中直接将API Key硬编码到代码中,以减少API Key泄露风险。\n", " api_key=\"sk-17d17a164fb44ff99d88647bc6a1d551\",\n", " app_id='83af9a2c0cf444da9a1860c91a1963ec',# 替换为实际的应用 ID\n", " prompt='你是谁?')\n", "if response.status_code != HTTPStatus.OK:\n", " print(f'request_id={response.request_id}')\n", " print(f'code={response.status_code}')\n", " print(f'message={response.message}')\n", " print(f'请参考文档:https://help.aliyun.com/zh/model-studio/developer-reference/error-code')\n", "else:\n", " print(response.output.text)" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "ExecuteTime": { "end_time": "2025-05-14T17:20:59.901784Z", "start_time": "2025-05-14T17:20:59.797072Z" } }, "outputs": [], "source": [ "import os\n", "from http import HTTPStatus\n", "from dashscope import Application\n", "mdm = MySQLconnect(\"mdm\")\n", "sql = \"\"\"SELECT * FROM `tw_session_detail` WHERE session_id = 111\"\"\"\n", "chatdf = pd.read_sql(sql, mdm.engine())\n", "rows_as_dict_list = chatdf.to_dict(orient='records')\n", "rows_as_dict_list" ] }, { "cell_type": "code", "execution_count": 50, "metadata": {}, "outputs": [], "source": [ "url = \"http://192.168.100.44/rpaapi/followup\" \n", "response = requests.get(url).json()\n" ] }, { "cell_type": "code", "execution_count": 51, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'key': None, 'task_id': None}" ] }, "execution_count": 51, "metadata": {}, "output_type": "execute_result" } ], "source": [ "response" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "ExecuteTime": { "end_time": "2025-05-14T17:21:12.453964Z", "start_time": "2025-05-14T17:21:03.052705Z" } }, "outputs": [], "source": [ "import os\n", "from http import HTTPStatus\n", "from dashscope import Application\n", "response = Application.call(\n", " # 若没有配置环境变量,可用百炼API Key将下行替换为:api_key=\"sk-xxx\"。但不建议在生产环境中直接将API Key硬编码到代码中,以减少API Key泄露风险。\n", " api_key=\"sk-17d17a164fb44ff99d88647bc6a1d551\",\n", " app_id='83af9a2c0cf444da9a1860c91a1963ec',# 替换为实际的应用 ID\n", " prompt=str(rows_as_dict_list))\n", "if response.status_code != HTTPStatus.OK:\n", " print(f'request_id={response.request_id}')\n", " print(f'code={response.status_code}')\n", " print(f'message={response.message}')\n", " print(f'请参考文档:https://help.aliyun.com/zh/model-studio/developer-reference/error-code')\n", "else:\n", " print(json.loads(response.output.text))\n", " #上传数据库\n", " #" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "################################################################## 上传聊天记录" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "ExecuteTime": { "end_time": "2025-05-16T14:28:17.306768Z", "start_time": "2025-05-16T14:28:17.294156Z" }, "collapsed": false }, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "ExecuteTime": { "end_time": "2025-05-16T15:38:46.563968Z", "start_time": "2025-05-16T15:38:44.315926Z" }, "collapsed": false }, "outputs": [], "source": [ "import os\n", "import pandas as pd\n", "from datetime import datetime\n", "from http import HTTPStatus\n", "from dashscope import Application\n", "from utils.gtools import MySQLconnect\n", "import json\n", "mdm = MySQLconnect('mdm')\n", "import requests" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "def upload_to_cpmaso(id,date,file,process_remark='',is_return=0,is_refund=0,is_find_goods=0):\n", " url = \"http://192.168.100.44/rpaapi/upload_system_appointed_time\"\n", " data = {\"id\":id,\"date\":date,\"content\":file,\"process_remark\":process_remark,\"is_refund\":is_refund,\"is_return\":is_return,\"is_find_goods\":is_find_goods} # id是任务idcontent是txt文件内容,remark是备注\n", " headers = {\"Content-Type\": \"application/json\"}\n", " response = requests.post(url=url,json=data,headers=headers)\n", " return response" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import os\n", "from http import HTTPStatus\n", "from dashscope import Application\n", "def aliyun(prompt):\n", " response = Application.call(\n", " # 若没有配置环境变量,可用百炼API Key将下行替换为:api_key=\"sk-xxx\"。但不建议在生产环境中直接将API Key硬编码到代码中,以减少API Key泄露风险。\n", " api_key=\"sk-17d17a164fb44ff99d88647bc6a1d551\",\n", " app_id='83af9a2c0cf444da9a1860c91a1963ec',# 替换为实际的应用 ID\n", " prompt=prompt)\n", " api_data = json.loads(response.output.text)\n", " return api_data" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "ExecuteTime": { "end_time": "2025-05-16T15:38:58.960899Z", "start_time": "2025-05-16T15:38:58.940364Z" }, "collapsed": false }, "outputs": [], "source": [ "sql = \"\"\"SELECT * FROM `tw_order_follow_up` where platform = '淘天' AND upload_cpmaso = 0\"\"\"" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "ExecuteTime": { "end_time": "2025-05-16T15:39:01.808655Z", "start_time": "2025-05-16T15:39:01.716950Z" }, "collapsed": false }, "outputs": [], "source": [ "df = pd.read_sql(sql,mdm.engine())\n", "df" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "ExecuteTime": { "end_time": "2025-05-15T15:26:13.035452Z", "start_time": "2025-05-15T15:26:13.013689Z" }, "collapsed": false }, "outputs": [], "source": [ "def update_follow_up(task_id,time='null',task_status=0,refund=0,has_image=1,clearly_time='0',one_more_time=0):\n", " sql = f\"\"\"\n", " UPDATE `tw_order_follow_up`\n", " SET agreed_delivery_time = {time},task_status = {task_status},need_refund = {refund},\n", " has_image = {has_image},clearly_specify_the_delivery_time = {clearly_time},one_more_time = {one_more_time}\n", " WHERE cpmaso_task_id = \"{task_id}\"\n", " \"\"\"\n", " connect = mdm.connect()\n", " connect.cursor().execute(sql)\n", " connect.commit()\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "ExecuteTime": { "end_time": "2025-05-16T15:45:35.889562Z", "start_time": "2025-05-16T15:41:16.724883Z" }, "collapsed": false }, "outputs": [], "source": [ "from datetime import datetime \n", "#id,date,file,remake='',is_return=0,is_refund=0,is_find_goods=0):\n", "for idx,row in df.iterrows():\n", " #如果已发货,就上传记录\n", " if row[\"task_status\"] == 5:\n", " resp=upload_to_cpmaso(id=row[\"cpmaso_task_id\"],\n", " date = datetime.now().strftime(\"%Y-%m-%d\"),\n", " file = \"\",\n", " process_remark = \"已发货\")\n", " print(resp)\n", " url = 'http://192.168.100.44/rpaapi/upload_followup'\n", " data = {\n", " \"task_id\" : row[\"cpmaso_task_id\"],\n", " \"task_status\":row[\"task_status\"],\n", " \"upload_cpmaso\" : 1\n", " }\n", " headers = {\"Content-Type\": \"application/json\"}\n", " response = requests.post(url=url,json=data,headers=headers)\n", " print(1)\n", " elif row[\"task_status\"] == 0:\n", " chat_sql = f\"\"\"SELECT\n", " t3.* \n", " FROM\n", " `tw_order_follow_up` t1 LEFT JOIN tw_auto_task t2 on t1.last_task_id = t2.id\n", " LEFT JOIN tw_session_detail t3 on t3.session_id = t2.send_session\n", " WHERE\n", " cpmaso_task_id = {row[\"cpmaso_task_id\"]} \"\"\"\n", " chatdf = pd.read_sql(chat_sql, mdm.engine())\n", " \n", " \n", " if len(chatdf) == 0 or chatdf[\"id\"][0] is None:\n", " continue\n", " else:\n", " last_match_idx = chatdf[chatdf['chat_content'].str.contains('平台交易号', na=False)].index[-1]\n", " # # 获取该行及之后所有行\n", " chatdf = chatdf.loc[last_match_idx:]\n", " if len(chatdf) == 1:\n", " resp=upload_to_cpmaso(id=row[\"cpmaso_task_id\"],\n", " date =\"\",\n", " file = str(chatdf.to_dict(orient='records')),\n", " process_remark = \"买家未回复\")\n", " continue\n", " elif len(chatdf) >= 2:\n", " pass\n", " \n", " rows_as_dict_list = chatdf.to_dict(orient='records')\n", " prompt=str(rows_as_dict_list)\n", " chat_list = [row['chat_content'] for row in rows_as_dict_list]\n", " api_data= aliyun(prompt)\n", " print(chat_list)\n", " deliver_date = api_data['result']['约定发货信息']['发货时间'] #发货时间\n", " answer_result = api_data[\"result\"]['回复结果'] # 回复结果\n", " is_return = api_data['result']['是否需要退款']\n", " is_deliver = api_data['result']['是否已发货'] \n", " is_ask = api_data['result']['是否需要追问']\n", " time = datetime.strptime(deliver_date, \"%Y/%m/%d\").date().strftime(\"%Y-%m-%d\") if deliver_date else \"\"\n", " need_refund = 1 if is_return == \"是\" else 0\n", " clearly_time = 1 if answer_result == '明确发货时间' else 2 if answer_result == '无法明确发货时间' else 3\n", " one_more_time = 1 if is_ask == '是' else 2\n", " has_image = 1 if answer_result == '内含图片' else 0\n", " task_status = 5 if answer_result == '回复已发货' else 4 if has_image == 1 else 1 if clearly_time == 2 else 2 if clearly_time == 1 else 1\n", " task_status = 4 if need_refund == 1 else task_status\n", " print(api_data)\n", "\n", " resp=upload_to_cpmaso(id=row[\"cpmaso_task_id\"],\n", " date = time,\n", " file = str(chatdf.to_dict(orient='records')),\n", " process_remark = answer_result)\n", " \n", " url = 'http://192.168.100.44/rpaapi/upload_followup'\n", " data = {\n", " \"task_id\" : row[\"cpmaso_task_id\"],\n", " \"time\":time,\n", " \"task_status\":task_status,\n", " \"refund\": need_refund,\n", " \"has_image\":has_image,\n", " \"clearly_time\":clearly_time,\n", " \"one_more_time\":one_more_time,\n", " \"upload_cpmaso\" : 1\n", " }\n", "\n", " headers = {\"Content-Type\": \"application/json\"}\n", " response = requests.post(url=url,json=data,headers=headers)\n", " print(1)\n", " for j in range(len(rows_as_dict_list)):\n", " id = rows_as_dict_list[j]['id']\n", " url = 'http://192.168.100.44/rpaapi/read'\n", " data = {\"chat_id\":id}\n", " headers = {\"Content-Type\": \"application/json\"}\n", " requests.post(url=url,json=data,headers=headers)" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "ExecuteTime": { "end_time": "2025-05-16T15:00:09.917941Z", "start_time": "2025-05-16T15:00:09.796011Z" }, "collapsed": false }, "outputs": [], "source": [ "def aliyun(rows_as_dict_list):\n", " response = Application.call(\n", " # 若没有配置环境变量,可用百炼API Key将下行替换为:api_key=\"sk-xxx\"。但不建议在生产环境中直接将API Key硬编码到代码中,以减少API Key泄露风险。\n", " api_key=\"sk-17d17a164fb44ff99d88647bc6a1d551\",\n", " app_id='83af9a2c0cf444da9a1860c91a1963ec',# 替换为实际的应用 ID\n", " prompt=str(rows_as_dict_list))\n", " api_data = json.loads(response.output.text)\n", " return api_data\n", " deliver_date = api_data['result']['约定发货信息']['发货时间'] #发货时间\n", " answer_result = api_data[\"result\"]['回复结果'] # 回复结果\n", " is_return = api_data['result']['是否需要退款']\n", " is_deliver = api_data['result']['是否已发货']\n", " is_ask = api_data['result']['是否需要追问']\n", " time = datetime.strptime(deliver_date, \"%Y/%m/%d\").date() if deliver_date else None\n", " need_refund = 1 if is_return == \"是\" else 0\n", " clearly_time = 1 if answer_result == '明确发货时间' else 2 if answer_result == '无法明确发货时间' else 3\n", " one_more_time = 1 if is_ask == '是' else 2\n", " has_image = 1 if answer_result == '内含图片' else 0\n", " task_status = 5 if answer_result == '回复已发货' else 4 if has_image == 1 else 1 if clearly_time == 2 else 2 if clearly_time == 1 else 1\n", " task_status = 4 if need_refund == 1 else task_status\n", " print(api_data)\n", "\n", " url = 'http://192.168.100.44/rpaapi/upload_followup'\n", " data = {\n", " \"task_id\" : df.iloc[i,1],\"time\":time,\n", " \"task_status\":task_status,\n", " \"refund\": need_refund,\n", " \"has_image\":has_image,\n", " \"clearly_time\":clearly_time,\n", " \"one_more_time\":one_more_time\n", " }\n", " headers = {\"Content-Type\": \"application/json\"}\n", " response = requests.post(url=url,json=data,headers=headers)\n", " print(1)" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "ExecuteTime": { "end_time": "2025-05-16T15:07:00.762532Z", "start_time": "2025-05-16T15:07:00.737861Z" }, "collapsed": false }, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "############################################################# 聊天记录上传系统" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "ExecuteTime": { "end_time": "2025-05-15T17:01:48.937072Z", "start_time": "2025-05-15T17:01:47.491710Z" }, "collapsed": false }, "outputs": [], "source": [ "sql = \"\"\"SELECT cpmaso_task_id,agreed_delivery_time,task_status,need_refund,clearly_specify_the_delivery_time,one_more_time\n", "from tw_order_follow_up\n", "where platform = '淘天'\n", "and DATE(create_date) = DATE(CONVERT_TZ(NOW(), '+00:00', '+08:00'))\n", "and task_status != 0\n", "and task_status != 5\n", "and task_status != 4\"\"\"\n", "df = pd.read_sql(sql,mdm.engine())\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "ExecuteTime": { "end_time": "2025-05-15T17:51:28.209124Z", "start_time": "2025-05-15T17:51:28.204284Z" }, "collapsed": false }, "outputs": [], "source": [ "def upload_to_cpmaso(id,date,file,remake='',is_return=0,is_refund=0,is_find_goods=0):\n", " url = \"http://192.168.100.44/rpaapi/upload_system_appointed_time\"\n", " data = {\"id\":id,\"date\":date,\"content\":file,\"remark\":remake,\"is_refund\":is_refund,\"is_return\":is_return,\"is_find_goods\":is_find_goods} # id是任务idcontent是txt文件内容,remark是备注\n", " headers = {\"Content-Type\": \"application/json\"}\n", " response = requests.post(url=url,json=data,headers=headers)\n", " print(response)" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "ExecuteTime": { "end_time": "2025-05-15T18:01:35.681048Z", "start_time": "2025-05-15T18:01:24.070530Z" }, "collapsed": false }, "outputs": [], "source": [ "for i in range(len(df)):\n", " type_id = str(df.iloc[i]['cpmaso_task_id'])\n", " is_refund = str(df.iloc[i]['need_refund'])\n", " if df.iloc[i]['agreed_delivery_time']: # 如果时间不为空\n", " date = str(df.iloc[i]['agreed_delivery_time'])\n", " remake= ''\n", " else:\n", " date = ''\n", " remake = '没有明确时间'\n", " msg_sql = f\"\"\"SELECT b.*\n", " FROM tw_auto_task a\n", " left join tw_session_detail b on a.send_session = b.session_id\n", " where a.type_id = {type_id}\"\"\"\n", " msg_df = pd.read_sql(msg_sql,mdm.engine())\n", " msg_df['chat_date'] = msg_df['chat_date'].dt.strftime('%Y-%m-%d %H:%M:%S')\n", " msg_file = msg_df.to_dict(orient='records')\n", " upload_to_cpmaso(id=type_id,date=date,file=msg_file,is_refund=is_refund,remake=remake)\n", " print(msg_file)" ] }, { "cell_type": "code", "execution_count": 60, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "{'success': True,\n", " 'msg': '成功获取会话任务详情',\n", " 'url': 'https://distributor.taobao.global/apps/open/imchat?loginToken=7OXaq3%2B20t8Fslz9ewVQmJvp%2F6nWulgUe1UVHUURSfP5dyPsFgpb%2Babr2%2BnnUUN9RmP0iZ9aq6fVttswuHtXvJxK%2FCP8OpkHIR%2BytvG9q%2F0%3D&sellerId=NTg3OTUxMDY5',\n", " 'text': '平台交易号:3275492124464538788,您好,之前联系过您多次,仍未收到回复。03月12日前可以发货吗?如果近期无法发货,我们只能申请退款处理。',\n", " 'shopname': '首选家具专盈店'}" ] }, "execution_count": 60, "metadata": {}, "output_type": "execute_result" } ], "source": [ " \n", "def get_session_task_detail(task_id):\n", " \"\"\"获取会话任务详情\"\"\"\n", " url = f\"http://192.168.100.44/rpaapi/get_session_task_detail/{task_id}\"\n", " try:\n", " response = requests.get(url, timeout=10)\n", " res = response.json()\n", " if res.get('message') == \"success\":\n", " return {\n", " \"success\": True,\n", " \"msg\": \"成功获取会话任务详情\",\n", " \"url\": res['url'],\n", " \"text\": res['text'],\n", " \"shopname\": res['shopname']\n", " }\n", " else:\n", " return {\n", " \"success\": False,\n", " \"msg\": f\"获取会话任务详情失败: {res['message']}\",\n", " \"url\": None,\n", " \"text\": None,\n", " \"shopname\": None\n", " }\n", " except Exception as e:\n", " print(e)\n", " return {\n", " \"success\": False,\n", " \"msg\": f\"获取会话任务详情失败: {e}\",\n", " \"url\": None,\n", " \"text\": None,\n", " \"shopname\": None\n", " }\n", "\n", "get_session_task_detail(43439)" ] }, { "cell_type": "code", "execution_count": 61, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "<>:23: SyntaxWarning: invalid escape sequence '\\/'\n", "<>:23: SyntaxWarning: invalid escape sequence '\\/'\n", "C:\\Users\\joker\\AppData\\Local\\Temp\\ipykernel_96992\\365462581.py:23: SyntaxWarning: invalid escape sequence '\\/'\n", " !function(t){function e(a){if(n[a])return n[a].exports;var o=n[a]={exports:{},id:a,loaded:!1};return t[a].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p=\"\",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){\"use strict\";n(2).initGlobal(window),function(){var t=n(4);n(156)(t)}()},function(t,e,n){\"use strict\";var a,o=n(3),r=o.APLUS,i=o.APLUS_QUEUE,s=o.GOLDLOG,u=o.GOLDLOG_QUEUE,c=!1;try{\"undefined\"!=typeof window&&(a=window,c=!0)}catch(t){a={},c=!1}e.getContext=function(){return a},e.isWeb=function(){return\"undefined\"!=typeof window&&window},e.initGlobal=function(t){a=t?t:{v:1,aplus:{},aplus_queue:[]};var e,n;if(c)try{e=a.aplus||a.goldlog||(a.aplus={});var o=a.goldlog_queue||(a.goldlog_queue=[]);n=a.aplus_queue||(a.aplus_queue=[]),n=o.concat(n)}catch(t){}else e=a.aplus,n=a.aplus_queue;return a.aplus=a.goldlog=e,a.aplus_queue=a.goldlog_queue=n,a};var l=function(t){if(t===r||t===s){var e=a[r]||a[s];return e||(e=a[r]=a[s]={}),e}var n=u,o=i;if(t===o||t===n){var c=a[o]||a[n];return c||(c=a[o]=a[n]=[]),c}};e.getGlobalValue=l,e.setGlobalValue=function(t,e){a[t]=e};var p=function(t){var e;try{var n=l(r);e=n[t]}catch(t){e=\"\"}finally{return e}};e.getGoldlogVal=p;var f=function(t,e){var n=!1;try{var a=l(r);t&&(a[t]=e,n=!0)}catch(t){n=!1}finally{return n}};e.setGoldlogVal=f,e.getClientInfo=function(){return p(\"_aplus_client\")||{}}},function(t,e){var n=\"aplus\",a=\"goldlog\",o=n+\"_queue\",r=a+\"_queue\",i=\"mw_change\",s=\"MetaInfo\",u=\"append\"+s,c=\"set\"+s,l=\"http\",p=\"_pubsub\",f=\"other\",g=\"2101\",d=\"2201\",m=\"2202\",_=\"19999\",h=\"1023\",v=\"1010\",b=3e4,y=18e5,S=\"ekvs\",A=1e4,E=1,T=1,I=3e3,P=\"$$_page_start\",w=\"$$_page_end\",C=\"$$_app_start\",M=\"$$_app_end\",x=\"aplus_user_profile\",O=\"imprint\",L=n+\"-idtype\",U=n+\"-jsbridge-only\",k=n+\"-page-config\",R=n+\"-skip-apv-rules\",N=n+\"-rhost-v\",G=n+\"-rhost-g\",D=n+\"-forward-domain\",V=n+\"-forward-event-filter\",j=\"autoGetOpenid\",F=n+\"-forward-appkey\";t.exports={PAGE_ENTER:\"PAGE_ENTER\",ETAG_EVENT_NAME:\"etag\",CURRENT_PAGE_CONFIG:\"CURRENT_PAGE_CONFIG\",_ANONY_ID:\"_anony_id\",_DEV_ID:\"_dev_id\",_USER_ID:\"_user_id\",_CNA:\"cna\",DEFAULT_CODE:f,OTHER:_,EVENT_MAP:{2101:\"click\",2201:\"exposure\",2202:\"exposure\",19999:f,1023:\"app_show\",1010:\"app_hide_or_unload\"},EVENT_ID_MAP:{EXP:d,IMPEXP:m,CLK:g,OTHER:_,SHOW:h,H_OR_U:v},APLUS:n,APLUS_CONFIG:\"APLUS_CONFIG\",GOLDLOG:a,UNSUBSCRIBE:n+\".\"+n+p+\".unsubscribe\",SUBSCRIBE:n+\".\"+n+p+\".subscribe\",PUBLISH:n+\".\"+n+p+\".publish\",CACHE_PUBS:n+\".\"+n+p+\".cachePubs\",APLUS_UNIVERSAL:n+\"_universal\",APLUS_QUEUE:o,GOLDLOG_QUEUE:r,COMPLETE:\"complete\",PV_CODE:\"2001\",EXP_CODE:d,CLK_CODE:g,OTHER_CODE:_,CLK:\"CLK\",EXP:\"EXP\",SPM_CNT:\"spm-cnt\",SPM_URL:\"spm-url\",SPM_PRE:\"spm-pre\",MW_CHANGE_PV:i+\"_pv\",MW_CHANGE_HJLJ:i+\"_hjlj\",HTTP:l+\":\",HTTPS:\"https:\",APPEND_META_INFO:u,SET_META_INFO:c,APLUS_APPEND_META_INFO:n+\".\"+u,APLUS_SET_META_INFO:n+\".\"+c,PVID:\"pvid\",openAPIs:[\"send\",\"enter\",\"sendPV\",\"record\",\"combineRecord\",\"recordUdata\",\"requestVTConfig\",\"requestRemoteConfig\",\"setPageSPM\",\"setMetaInfo\",\"appendMetaInfo\",\"updatePageProperties\",\"updateNextPageProperties\",\"updatePageUtparam\",\"updateNextPageUtparam\",\"pageAppear\",\"pageDisappear\",\"pageDisAppear\",\"skipPage\",\"updatePageName\",\"updatePageUrl\",\"requestPageAllProperties\",\"updateSessionProperties\",\"getPageSpmUrl\",\"getPageSpmPre\",\"updateNextPageUtparamCnt\",\"setPageName\",\"getElementSPM\",\"getAutoElementSPM\",\"setUserProfile\",\"getUserProfile\",\"getCna\"],SESSION_INTERVAL:b,SESSION_PAUSE_TIME:\"session_pause_time\",IMPRINT:\"imprint\",CURRENT_SESSION:\"current_session\",MAX_EVENTID_LENGTH:128,MAX_PROPERTY_KEY_LENGTH:256,MAX_PROPERTY_KEYS_COUNT:100,FAILED_REQUESTS:\"failed_requests\",REQUESTS:\"requests\",SHARES:\"shares\",APLUS_SSRC:\"_aplus_ssrc\",ARMS_TRACE:\"_arms_trace\",EKVS:S,EVENT_MAX_COUNT:A,MEMORY_MAX_COUNT:E,MAX_QUEUE_COUNT:T,EVENT_SEND_DEFAULT_INTERVAL:I,PAGE_START:P,PAGE_END:w,APP_START:C,APP_END:M,USER_PROFILE_KEY:x,SHARE_CACHE_INTERVAL:y,IMPRINT:O,ID_TYPE:L,GLOBAL_PROPERTY:\"globalproperty\",JSBRIDGE_ONLY:U,PAGE_CONFIG:k,APLUS_SKIP_APV_RULES:R,APLUS_PV_DOMAIN:N,APLUS_EKV_DOMAIN:G,APLUS_FORWARD_DOMAIN:D,APLUS_IMPRINT_VERSION:\"APLUS_IMPRINT_VERSION\",APLUS_REMOTE_CONFIG:\"APLUS_REMOTE_CONFIG\",RANK:\"ekv_rank\",WEB_EVENT_SUFFIX:\"/web_logs\",WEB_PC_PV_SUFFIX:\"v.gif\",WEB_WAP_PV_SUFFIX:\"m.gif\",PAGE_LEAVE:\"$$_page_leave\",APLUS_DOM_CHANGE:\"APLUS_DOM_CHANGE\",APLUS_PAGE_CHANGE:\"APLUS_PAGE_CHANGE\",PERFORMANCE_WARING:\"$$_perf_warning\",START_ID:\"START_ID\",AUTO_GET_OPENID:j,APLUS_LATEAST_UTM:\"APLUS_LATEAST_UTM\",APLUS_FORWARD_EVENT_FILTER:V,APLUS_FORWARD_APPKEY:F,APLUS_RHOST_V:n+\"-rhost-v\",APLUS_CPVDATA:n+\"-cpvdata\",APLUS_EXDATA:n+\"-exdata\",APLUS_EXINFO:n+\"-exinfo\",APLUS_LOG_PIPE:n+\"-log-pipe\",APLUS_TRACK_COMBINE:n+\"-track-combine\",APLUS_COOKIES:n+\"-cookies\",APLUS_CODELESS_TRACK_CONFIG:\"_\"+n+\"_codeless_track_config\",APLUS_AUTO_CLK:n+\"-auto-clk\",APLUS_AUTO_EXP:n+\"-auto-exp\",APLUS_AUTO_PV:n+\"-auto-pv\",APLUS_BRIDGE_NAME:n+\"-bridge-name\",APLUS_MINI_REQUEST_TIMEOUT:n+\"-request-timeout\",APLUS_VT_CONFIG_URL:n+\"-vt-cfg-url\",APLUS_EXPOSURE_EVENT_CAN_REPEAT:n+\"-exposure-event-can-repeat\",APLUS_IGNORE_LIFECYCLES:n+\"-ignore-lifecycles\",APLUS_TRACK_DEBUG_ID:n+\"-track-debug-id\",APLUS_SINGLE_RECORD_LOGKEYS:n+\"-single-record-logkeys\",APLUS_GOKEY_ISOLATE:n+\"-gokey-isolate\",APLUS_AUTOTRACK_ENABLED:n+\"-autotrack-enabled\",APLUS_AUTOTRACK_ENABLED_REMOTE:n+\"-autotrack-enabled-remote\",APLUS_AUTOTRACK_CONFIG:n+\"-autotrack-config\",APLUS_AUTO_TRACK_CONFIG_IMPORT:n+\"-auto-track-config-import\",APLUS_AUTOTRACK_CONFIG_REMOTE:n+\"-autotrack-config-remote\",APLUS_EVENT_LIMITRATES:n+\"-event-limitrates\",APLUS_DISABLE_AUTOEVENT:n+\"-disable-autoevent\",APLUS_DISABLE_AUTOEVENT_REMOTE:n+\"-disable-autoevent\",APLUS_DISABLE_AUTOPV:n+\"-disable-apv\",APLUS_DISABLE_AUTOPV_REMOTE:n+\"-disable-apv-remote\",APLUS_DEVICE_ENABLE:n+\"-device-enable\",APLUS_USER_PROFILE:n+\"-user-profile\",APLUS_CNA_ENABLE:n+\"-cna-enable\",APLUS_CNA_MODE:n+\"-cna-mode\",APLUS_ETAG_TIMEOUT:n+\"-etag-timeout\",APLUS_SPA_TYPE:n+\"-spa-type\",APLUS_MONITOR_ENABLE:n+\"-monitor-enable\",APLUS_OBSERVATIONS:\"_\"+n+\"_observations\",APLUS_REPORT_RATE:n+\"-report-rate\",APLUS_CNA_MONITOR:n+\"-cna-monitor\",APLUS_MMSTAT_TIMEOUT:n+\"-mmstat-timeout\",APLUS_REMOTE_CONTROL:n+\"-remote-control\",APLUS_CNA_STABILITY:n+\"-cna-stability\",APLUS_AUTO_PID:n+\"-auto-pid\"}},function(t,e,n){t.exports={metaInfo:{\"aplus-ifr-pv\":\"0\",\"aplus-rhost-v\":\"log.mmstat.com\",\"aplus-rhost-g\":\"gm.mmstat.com\",\"aplus-channel\":\"WS\",appId:\"60506758\",sdkId:\"customSdkId\",\"aplus-cpvdata\":{},\"aplus-exdata\":{},\"aplus-globaldata\":{},\"aplus-mmstat-timeout\":\"10000\",\"aplus-toUT\":\"auto\",\"aplus-track-combine\":\"on\",\"aplus-vt-auto-userfn-enable\":\"on\",\"aplus-cna-enable\":\"on\",\"aplus-cna-mode\":\"CK\",\"aplus-auto-track-config-import\":\"off\",\"aplus-form-track\":\"off\",\"aplus-gokey-isolate\":\"on\",\"aplus-only-update-page-properties\":\"off\",\"aplus-spm-from-url\":\"on\",\"aplus-user-profile\":{},\"aplus-report-rate\":{},\"aplus-single-record-logkeys\":[],\"aplus-cross-day-auto-pv\":\"off\",\"aplus-cna-monitor\":\"off\",\"aplus-cna-stability\":\"off\",\"aplus-auto-pid\":\"on\",\"aplus-monitor-enable\":\"off\",\"aplus-remote-control\":\"on\"},globalConfig:{isAli:!0,APLUS_QUEUE:\"aplus_queue\",ETAG_STORAGE_KEY:\"__ETAG__CNA__ID__\",script_name:\"aplus.js\",NAME_STORAGE_KEYS:{REFERRER:\"wm_referrer\",REFERRER_PV_ID:\"refer_pv_id\",LOST_PV_PAGE_DURATION:\"lost_pv_page_duration\",LOST_PV_PAGE_SPMAB:\"lost_pv_page_spmab\",LOST_PV_PAGE:\"lost_pv_page\",LOST_PV_PAGE_MSG:\"lost_pv_page_msg\"},lver:\"1.13.27\"},plugins:[{name:\"aplus_body_ready\",path:n(5)},{name:\"pubsub\",path:n(6)},{name:\"aplus_client\",path:n(11)},{name:\"aplus_meta_inject\",path:n(15)},{name:\"aplus_remote_control\",path:n(49)},{name:\"aplus_observer\",path:n(51)},{name:\"aplus_ac\",path:n(53)},{name:\"aplus_ae\",path:n(72)},{name:\"name_storage\",path:n(80)},{name:\"record_lost_pv\",path:n(83),config:{lostPvRecordRatio:.01}},{name:\"aplus_monitor\",path:n(85),config:{obsoleteInterRecordRatio:\"0.01\",jsErrorRecordRatio:\"0.01\",browserSupportRatio:\"0.01\"}},{name:\"aplus_web_http_ali\",path:n(92)},{name:\"aplus_log_inject\",path:n(95),deps:[\"aplus_meta_inject\"],config:{plugins:{pv:[{name:\"etag\",path:n(96)},{name:\"pha_trackinfo\",path:n(100)},{name:\"when_to_sendpv\",path:n(101),config:{aplusWaiting:\"\"}},{name:\"where_to_send\",path:n(102),config:{method:\"GET\",url:\"//log.mmstat.com/v.gif\"}},{name:\"what_to_send\",path:n(103),config:{pvdataToUt:{}}},{name:\"cookie_data\",path:n(104)},{name:\"what_to_sendpv_userdata\",path:n(105),deps:[\"what_to_send\"]},{name:\"what_to_sendpv_userdata_web\",path:n(106),deps:[\"what_to_send\",\"what_to_sendpv_userdata\"]},{name:\"what_to_sendpv_ut2\",path:n(108),deps:[\"what_to_send\"]},{name:\"can_to_sendpv\",path:n(109),config:{flag:\"NO\"}},{name:\"after_pv\",path:n(114)}],hjlj:[{name:\"etag\",path:n(96)},{name:\"pha_trackinfo\",path:n(100)},{name:\"where_to_send\",path:n(102),deps:[],config:{method:\"GET\",url:\"//gm.mmstat.com/\",ac_atpanel:\"//ac.mmstat.com/\",tblogUrl:\"//log.mmstat.com/\"}},{name:\"what_to_send\",path:n(103),deps:[]},{name:\"cookie_data\",path:n(104)},{name:\"what_to_hjlj_userdata\",path:n(115),deps:[\"what_to_send\"]},{name:\"what_to_hjlj_userdata_web\",path:n(116),deps:[\"what_to_send\",\"what_to_hjlj_userdata\"]},{name:\"what_to_hjlj_ut2\",path:n(117),deps:[\"what_to_send\"]}]}}},{name:\"aplus_spm_inject\",path:n(118)},{name:\"aplus_api\",path:n(132)},{name:\"meta_queue\",path:n(141)},{name:\"etag\",path:n(96)},{name:\"etag_web_sync\",path:n(143)},{name:\"aplus_queue\",path:n(144)},{name:\"hot_loader\",path:n(145),config:{urlRules:[{id:\"aplus_webvt_messager\",rule:\"aplus_webvt_messager\",cacheType:\"sessionStorage\",cdnPath:[\"https://d.alicdn.com/alilog/mlog/aplus_webvt_messager.js\",\"https://d.alicdn.com/alilog/mlog/aplus_track_debug.js\"]},{id:\"aplus_track_debug_id\",cacheType:\"sessionStorage\",rule:\"aplus_track_debug_id\",cdnPath:[\"https://d.alicdn.com/alilog/mlog/aplus_track_debug.js\"]},{id:\"aplus_auto_register\",rule:\"aplus_auto_register=true\",cacheType:\"sessionStorage\",allowIframeLoad:!0,cdnPath:[\"https://d.alicdn.com/alilog/aplus/1.13.9/plugin/aplus_auto_register.js\"]},{id:\"aplus_heat\",rule:\"aplus_heat=true\",cacheType:\"cookie\",allowIframeLoad:!0,cdnPath:[\"https://o.alicdn.com/alilog/aplus-visual-client/heat.js\"]}]}},{name:\"hot_sufei_pc\",path:n(146)},{name:\"aplus_apv\",path:n(147),deps:[\"aplus_log_inject\",\"aplus_api\"]},{name:\"aplus_form_track\",path:n(150)}]}},function(t,e){\"use strict\";t.exports=function(){return{run:function(t,e){var n=setInterval(function(){document.getElementsByTagName(\"body\").length&&(clearInterval(n),n=null,e())},50);return setTimeout(function(){n&&clearInterval(n)},1e3),1e3}}}},function(t,e,n){var a=n(7),o=n(2);t.exports=function(){return{run:function(){var t=o.getGlobalValue(\"aplus\");t.aplus_pubsub||(t.aplus_pubsub=a.create())}}}},function(t,e,n){var a=n(8);t.exports=a.extend({subscribeOnce:function(t,e){this.callable(e);var n,a=this;return this.subscribe.call(this,t,n=function(){a.unsubscribe.call(a,t,n);var o=Array.prototype.slice.call(arguments);e.apply(a,o)}),this}})},function(t,e,n){\"use strict\";var a=n(9),o=n(10),r=function(t){for(var e=t.length,n=new Array(e-1),a=1;a0){for(var a=0;a0)for(var i=0;i\",A=u&&u.createElement(\"div\"),E=[],T={isAliapp:!1,webkit:void 0,edge:void 0,trident:void 0,gecko:void 0,presto:void 0,chrome:void 0,safari:void 0,firefox:void 0,ie:void 0,ieMode:void 0,opera:void 0,mobile:void 0,core:void 0,shell:void 0,phantomjs:void 0,os:void 0,ipad:void 0,iphone:void 0,ipod:void 0,ios:void 0,android:void 0,nodejs:void 0,extraName:void 0,extraVersion:void 0};if(A&&A.getElementsByTagName&&(A.innerHTML=S.replace(y,\"\"),E=A.getElementsByTagName(\"s\")),E.length>0){for(d(t,T),i=b[0],s=b[1];i<=s;i++)if(A.innerHTML=S.replace(y,i),E.length>0){T[v=\"ie\"]=i;break}!T.ie&&(r=m(t))&&(T[v=\"ie\"]=r)}else((o=t.match(/AppleWebKit\\/*\\s*([\\d.]*)/i))||(o=t.match(/Safari\\/([\\d.]*)/)))&&o[1]?(T[h=\"webkit\"]=g(o[1]),(o=t.match(/OPR\\/(\\d+\\.\\d+)/))&&o[1]?T[v=\"opera\"]=g(o[1]):(o=t.match(/Chrome\\/([\\d.]*)/))&&o[1]?T[v=\"chrome\"]=g(o[1]):(o=t.match(/\\/([\\d.]*) Safari/))&&o[1]?T[v=\"safari\"]=g(o[1]):T.safari=T.webkit,(o=t.match(/Edge\\/([\\d.]*)/))&&o[1]&&(h=v=\"edge\",T[h]=g(o[1])),/ Mobile\\//.test(t)&&t.match(/iPad|iPod|iPhone/)?(T.mobile=\"apple\",o=t.match(/OS ([^\\s]*)/),o&&o[1]&&(T.ios=g(o[1].replace(\"_\",\".\"))),a=\"ios\",o=t.match(/iPad|iPod|iPhone/),o&&o[0]&&(T[o[0].toLowerCase()]=T.ios)):/ Android/i.test(t)?(/Mobile/.test(t)&&(a=T.mobile=\"android\"),o=t.match(/Android ([^\\s]*);/),o&&o[1]&&(T.android=g(o[1]))):(o=t.match(/NokiaN[^\\/]*|Android \\d\\.\\d|webOS\\/\\d\\.\\d/))&&(T.mobile=o[0].toLowerCase()),(o=t.match(/PhantomJS\\/([^\\s]*)/))&&o[1]&&(T.phantomjs=g(o[1]))):(o=t.match(/Presto\\/([\\d.]*)/))&&o[1]?(T[h=\"presto\"]=g(o[1]),(o=t.match(/Opera\\/([\\d.]*)/))&&o[1]&&(T[v=\"opera\"]=g(o[1]),(o=t.match(/Opera\\/.* Version\\/([\\d.]*)/))&&o[1]&&(T[v]=g(o[1])),(o=t.match(/Opera Mini[^;]*/))&&o?T.mobile=o[0].toLowerCase():(o=t.match(/Opera Mobi[^;]*/))&&o&&(T.mobile=o[0]))):(r=m(t))?(T[v=\"ie\"]=r,d(t,T)):(o=t.match(/Gecko/))&&(T[h=\"gecko\"]=.1,(o=t.match(/rv:([\\d.]*)/))&&o[1]&&(T[h]=g(o[1]),/Mobile|Tablet/.test(t)&&(T.mobile=\"firefox\")),(o=t.match(/Firefox\\/([\\d.]*)/))&&o[1]&&(T[v=\"firefox\"]=g(o[1])));if(!T[v]){var I=t.match(/Ali\\w+\\(\\w+\\/(\\d+\\.)+\\d+\\)/);if(I){T.isAliapp=!0;var P=I[0],w=\"\",C=\"\",M=P.match(/(\\d+\\.)+\\d+/);M&&(w=M[0],C=P.replace(\"/\"+w,\"\").replace(/\\(|\\)/g,\"\")),T[v=C]=w}}a||(a=e());var x,O,L;if(!n(\"type\",\"application/vnd.chromium.remoting-viewer\")){x=\"scoped\"in u.createElement(\"style\"),L=\"v8Locale\"in c;try{O=c.external||void 0}catch(t){}if(o=t.match(/360SE/))l=\"360\";else if((o=t.match(/SE\\s([\\d.]*)/))||O&&\"SEVersion\"in O)l=\"sougou\",f=g(o[1])||.1;else if((o=t.match(/Maxthon(?:\\/)+([\\d.]*)/))&&O){l=\"maxthon\";try{f=g(O.max_version||o[1])}catch(t){f=.1}}else x&&L?l=\"360se\":x||L||!/Gecko\\)\\s+Chrome/.test(p)||T.opera||T.edge||(l=\"360ee\")}(o=t.match(/TencentTraveler\\s([\\d.]*)|QQBrowser\\/([\\d.]*)/))?(l=\"tt\",f=g(o[2])||.1):(o=t.match(/LBBROWSER/))||O&&\"LiebaoGetVersion\"in O?l=\"liebao\":(o=t.match(/TheWorld/))?(l=\"theworld\",f=3):(o=t.match(/TaoBrowser\\/([\\d.]*)/))?(l=\"taobao\",f=g(o[1])||.1):(o=t.match(/UCBrowser\\/([\\d.]*)/))&&(l=\"uc\",f=g(o[1])||.1),T.os=a,T.core=T.core||h,T.shell=v,T.ieMode=T.ie&&u.documentMode||T.ie,T.extraName=l,T.extraVersion=f;var U=c.screen.width,k=c.screen.height;return T.resolution=U+\"x\"+k,T}function o(t){function e(t){return Object.prototype.toString.call(t)}function n(t,n,a){if(\"[object Function]\"==e(n)&&(n=n(a)),!n)return null;var o={name:t,version:\"\"},r=e(n);if(n===!0)return o;if(\"[object String]\"===r){if(a.indexOf(n)!==-1)return o}else if(n.exec){var i=n.exec(a);if(i)return i.length>=2&&i[1]?o.version=i[1].replace(/_/g,\".\"):o.version=\"\",o}}var a={name:\"other\",version:\"\"};t=(t||\"\").toLowerCase();for(var o=[[\"nokia\",function(t){return t.indexOf(\"nokia \")!==-1?/\\bnokia ([0-9]+)?/:/\\bnokia([a-z0-9]+)?/}],[\"samsung\",function(t){return t.indexOf(\"samsung\")!==-1?/\\bsamsung(?:[ \\-](?:sgh|gt|sm))?-([a-z0-9]+)/:/\\b(?:sgh|sch|gt|sm)-([a-z0-9]+)/}],[\"wp\",function(t){return t.indexOf(\"windows phone \")!==-1||t.indexOf(\"xblwp\")!==-1||t.indexOf(\"zunewp\")!==-1||t.indexOf(\"windows ce\")!==-1}],[\"pc\",\"windows\"],[\"ipad\",\"ipad\"],[\"ipod\",\"ipod\"],[\"iphone\",/\\biphone\\b|\\biph(\\d)/],[\"mac\",\"macintosh\"],[\"mi\",/\\bmi[ \\-]?([a-z0-9 ]+(?= build|\\)))/],[\"hongmi\",/\\bhm[ \\-]?([a-z0-9]+)/],[\"aliyun\",/\\baliyunos\\b(?:[\\-](\\d+))?/],[\"meizu\",function(t){return t.indexOf(\"meizu\")>=0?/\\bmeizu[\\/ ]([a-z0-9]+)\\b/:/\\bm([0-9x]{1,3})\\b/}],[\"nexus\",/\\bnexus ([0-9s.]+)/],[\"huawei\",function(t){var e=/\\bmediapad (.+?)(?= build\\/huaweimediapad\\b)/;return t.indexOf(\"huawei-huawei\")!==-1?/\\bhuawei\\-huawei\\-([a-z0-9\\-]+)/:e.test(t)?e:/\\bhuawei[ _\\-]?([a-z0-9]+)/}],[\"lenovo\",function(t){return t.indexOf(\"lenovo-lenovo\")!==-1?/\\blenovo\\-lenovo[ \\-]([a-z0-9]+)/:/\\blenovo[ \\-]?([a-z0-9]+)/}],[\"zte\",function(t){return/\\bzte\\-[tu]/.test(t)?/\\bzte-[tu][ _\\-]?([a-su-z0-9\\+]+)/:/\\bzte[ _\\-]?([a-su-z0-9\\+]+)/}],[\"vivo\",/\\bvivo(?: ([a-z0-9]+))?/],[\"htc\",function(t){return/\\bhtc[a-z0-9 _\\-]+(?= build\\b)/.test(t)?/\\bhtc[ _\\-]?([a-z0-9 ]+(?= build))/:/\\bhtc[ _\\-]?([a-z0-9 ]+)/}],[\"oppo\",/\\boppo[_]([a-z0-9]+)/],[\"konka\",/\\bkonka[_\\-]([a-z0-9]+)/],[\"sonyericsson\",/\\bmt([a-z0-9]+)/],[\"coolpad\",/\\bcoolpad[_ ]?([a-z0-9]+)/],[\"lg\",/\\blg[\\-]([a-z0-9]+)/],[\"android\",/\\bandroid\\b|\\badr\\b/],[\"blackberry\",function(t){return t.indexOf(\"blackberry\")>=0?/\\bblackberry\\s?(\\d+)/:\"bb10\"}]],r=0;rc.length?u:c,a=decodeURIComponent(a)}else n=e.match(o),a=n&&2===n.length?n[1]:\"\"}catch(t){}finally{return a}}function o(t,e){var n,a,o,r,i,s=e||location.href,c=\"&\",l=[];return u(t,function(t,e){new RegExp(t+\"=\").test(s)||l.push(t+\"=\"+e)}),0===l.length?s:(s.indexOf(\"#\")!==-1&&(o=s.split(\"#\"),s=o.shift(),a=o.join(\"#\")),r=s.split(\"?\"),i=r.length-1,o=r[0].split(\"//\"),o=o[o.length-1].split(\"/\"),i>0&&(n=r.pop(),s=r.join(\"?\")),n&&i>1&&n.indexOf(\"&\")==-1&&n.indexOf(\"%\")!==-1&&(c=\"%26\"),s=s+\"?\"+l.join(\"&\")+(n?c+n:\"\")+(a?\"#\"+a:\"\"))}function r(t){var e=s(location.hash)+\"\";c.pushIntoGoldlogQueue(\"aplus.on\",[window,\"hashchange\",function(){e!==s(location.hash)&&(e=s(location.hash)+\"\",t&&\"function\"==typeof t&&t(e,p))}])}function i(t){function e(e){var a=\"\";if(e){a=e&&e.arguments&&e.arguments.length>2&&e.arguments[2];var o=/^http|https/.test(a)?a:location.protocol+\"//\"+location.host+a;location.href!==o&&setTimeout(function(){t&&\"function\"==typeof t&&t(a,f)},0)}else a=location.pathname+location.search,a!==n&&setTimeout(function(){t&&\"function\"==typeof t&&t(a,f)},0);n=a}var n=location.pathname+location.search;if(history.pushState&&window.addEventListener){c.pushIntoGoldlogQueue(\"aplus.on\",[window,\"pushState\",function(t){e(t)}]),c.pushIntoGoldlogQueue(\"aplus.on\",[window,\"popstate\",function(){e()}]);var a=l.getMetaCnt(\"aplus-track-replacestate\")||aplus.getMetaInfo&&aplus.getMetaInfo(\"aplus-track-replacestate\");a&&c.pushIntoGoldlogQueue(\"aplus.on\",[window,\"replaceState\",function(t){e(t)}])}}function s(t){var e=\"\";return t&&(e=t.indexOf(\"?\")!=-1?t.split(\"?\")[0]:t),e}var u=n(18);e.addParamsIntoUrl=o,e.getParamFromUrl=a,e.getSPMFromUrl=function(t){return a(\"spm\",t)},e.getQueryFromUrl=function(){function t(t){for(var e=decodeURIComponent(t),n=e.indexOf(\"?\")+1,a=e.substring(n),o=Object.create(null),r=a.split(\"&\"),i=0;i-1)try{S[e]=JSON.parse(n)}catch(t){g.logger({msg:\"the content of meta<\"+e+\"> is invalid json string\"})}if(e===A)try{u=S[e]=JSON.parse(h.getMetaCnt(e))}catch(t){}}}),d(E,function(t){S[t]=h.getMetaCnt(t)}),S.spm_protocol=o(t),u&&(S=p.assign(S,u));var e,n,i=[\"aplus-rate-ahot\"],s=i.length;for(e=0;e\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " TaoWorld跨境供货平台\n", " \n", " \n", " \n", "\n", "\n", "\n", " \n", " \n", " \n", "\n", " \n", " \n", " \n", "\n", "\n", " \n", "
  • 联系人
  • 商品
  • 聊天记录
\"暂无数据\"
请输入搜索词
卓梵实木家居
2025/12/20
喜欢的亲亲抓紧购买吧,今日下单还有好礼相送哦! https://item.taobao.com/item.htm?id=752045743811 \u0006
最近联系过
功成地毯工厂
2025/12/19
/:)-(
最近联系过
领风灯具旗舰店
2025/12/14
双十二活动倒计时最后一天活动截止到今晚23:59分结束 宝宝有选好可以咨询客服下单哟
最近联系过
Ephdarren海外旗舰店
2025/12/14
/:087亲,再打扰您一下,双十二活动还剩最后一天了哦/:066\n", "心动不如行动,看上的别犹豫,活动过了价格会全面上涨的呢~/:^x^\n", "遇到喜欢的东西,就把它买下来吧,钱并不是真的花掉了/:087\n", "我们支持365天延迟发货的哦/:066
最近联系过
揽月摘星品牌家具
2025/12/12
[图片]
最近联系过
Tide leader家居
2025/12/12
双十二活动接近尾声了,家具还有哪些顾虑呢,消费券可以叠加立减,提前订购没装修好,也支持延迟发货哟/:081
最近联系过
玲芬美家LF HOME
2025/12/12
🔥亲亲,今晚双12秒杀狂欢夜了哦,您之前看中的家具可以入手啦!\n", "✅全店商品立减12% + 店铺优惠券 + 大额消费券,最高500元!\n", "⏰晚上20:00-23:59 还有超低折扣秒杀价,售卖4小时\n", "🛒现在提前加入购物车锁定优惠特权,定好闹钟准时付款\n", "🎁本店所有商品均支持【等通知发货】\n", " \u0006
最近联系过
皇利莱旗舰店
2025/12/12
/:066天猫双12狂欢节最后一天倒计时!\n", "\n", "今晚8点!为庆祝活动最终冲刺,我们将开启最后一波限时95折抢购福利!! 8-12点 ,只限4个小时!全场灯具, 价格直降+店铺券+限时95折+官方立减12%(上不封顶)+满额赠送安装服务,买灯即送LED三色光源一套,365天保价,让你购物无忧,而且,以上优惠可以叠加使用,力度空前巨大!\n", "\n", "只有4个小时,只有4个小时哦!快来抢购吧!\n", "别再错过了,不然再等一年哦!/:066\n", " \u0006
最近联系过
云栖木作
2025/12/10
亲主要在考虑什么呢?货物早拍下早发货的哦~而且咱们这边售后都是专业一对一的,不用担心货物收到没有保险哦~
最近联系过
勤朗旗舰店
2025/12/10
亲,您是在挑选款式呢,还是挑好款式准备下单呢 ? \n", "/:^x^现在双十二活动, 喜欢就下手了哦/:-F
最近联系过
意百万家具品牌店
2025/12/08
双十二活动开始了亲。没有下单可以早点下单发货
最近联系过
锦盛实木家居
2025/12/07
/:$双十二福利来袭,亲爱的不要错过活动福利哦!!\n", "\n", "12月8日 0点——12月14日 24 点:\n", "①.全店商品无需凑单,下单享官方立减12%!\n", "②.更有店铺券满 200 减25,可与官方立减叠加使用,上不封顶哈!\n", "③.下单即送限量精美台灯/抱枕哦!\n", "④.活动期间购买,可优先安排发货,还能享受 30 天保价服务呢~ https://item.taobao.com/item.htm?id=838023940983 \u0006
最近联系过
玖传世家具
2025/12/07
✈️88VIP领券链接:https://pages-fast.m.taobao.com/wow/z/blackvip/v/home?x-ssr=true&disableNav \u0006
最近联系过
福祥工艺家具
2025/12/07
/:066/:066/:066/:clock今晚0:00-1:00,限时1小时95折秒杀!!!\n", "/:$全店商品均享超低折扣价,更有店铺专属大额优惠劵,叠加官方立减13%!!!/:081/:081/:081\n", "赶快将心仪好物加入购物车,火速下单吧!!!/:809/:809/:809 \u0006
最近联系过
依诺家居生活馆yn
下拉或点此加载更多
t-2217567810350-0
2025-11-28 10:01:58
您好!关于【平台交易号:4896044463230622839】,请问货物的发车日期是几号呢?方便提供下吗?★重要信息麻烦打字告知哦★
依诺家居生活馆yn
2025-11-28 10:02:41
4896044463230622839
依诺家居生活馆yn
2025-11-28 10:04:04
30号左右到
t-2217567810350-0
2025-11-28 10:05:23
平台交易号:4908583513312069844,您好,请问订单的发货时间能否确定?12月02日前可以发货吗? 如果近期无法确定我们只能申请退款处理了哦。(不要图片版哈)
依诺家居生活馆yn
2025-11-28 10:05:39
可以
t-2217567810350-0
2025-11-28 10:18:59
平台交易号:4908196119382069844,您好,请问订单的发货时间能否确定?12月02日前可以发货吗? 如果近期无法确定我们只能申请退款处理了哦。(不要图片版哈)
依诺家居生活馆yn
2025-11-28 10:19:17
可以
t-2217567810350-0
2025-11-28 10:51:45
平台交易号:3089818957047538788,你好,请问最快什么时候发货,12月03日前可以发货吗?(麻烦不要发图片)
t-2217567810350-0
2025-11-28 11:00:24
平台交易号:3089812045891538788,你好,请问最快什么时候发货,12月03日前可以发货吗?(麻烦不要发图片)
依诺家居生活馆yn
2025-11-28 11:00:40
可以
t-2217567810350-0
2025-11-28 13:25:31
平台交易号:4910096557371069844,你好,请问最快什么时候发货,12月03日前可以发货吗?(麻烦不要发图片)
依诺家居生活馆yn
2025-11-28 13:25:37
可以
t-2217567810350-0
2025-11-28 14:53:09
亲!关于【平台交易号:4908196119382069844】,能麻烦您查下实际发车日期吗?谢谢配合!(麻烦不要发图片)
依诺家居生活馆yn
2025-11-28 14:53:41
前天发货的
依诺家居生活馆yn
2025-11-28 14:53:45
30号到
依诺家居生活馆yn
2025-11-28 14:53:55
现在查不到信息
依诺家居生活馆yn
2025-11-28 14:53:59
中途不卸车
t-2217567810350-0
2025-11-28 16:26:58
平台交易号:3090519877328538788,你好,请问最快什么时候发货,12月03日前可以发货吗?(麻烦不要发图片)
依诺家居生活馆yn
2025-11-28 16:27:20
可以
依诺家居生活馆yn
2025-11-28 16:38:59
请问是机器人吗
表情
发送图片
发送视频
78 / 500
平台交易号:3277680960636538788,您好,之前联系过您多次,仍未收到回复。03月11日前可以发货吗?如果近期无法发货,我们只能申请退款处理。
产品服务能力由钉钉提供
依诺家居生活馆yn
近三个月订单
没有数据
\n", "
TaoWorld跨境供货平台,链接天猫淘宝海量货源,为跨境卖家、代采代购商提供全链路的解决方案。
\n", " \n", " \n", "\n", "
AliPrice
AliPrice
仅本次浏览关闭插件浮标
永久关闭此网站插件浮标
使用快捷键Ctrl+Shift+4快速唤起
或在设置中重新启用(永久关闭则不支持此网站快捷键唤起使用)
全网图搜
店雷达1688选品工具,快速查找热销、飙升、上新商品;新品早发现,好商品早知道!
去看看
' \"\"\"" ] }, { "cell_type": "code", "execution_count": 65, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "<>:23: SyntaxWarning: invalid escape sequence '\\/'\n", "<>:23: SyntaxWarning: invalid escape sequence '\\/'\n", "C:\\Users\\joker\\AppData\\Local\\Temp\\ipykernel_96992\\4169073732.py:23: SyntaxWarning: invalid escape sequence '\\/'\n", " !function(t){function e(a){if(n[a])return n[a].exports;var o=n[a]={exports:{},id:a,loaded:!1};return t[a].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p=\"\",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){\"use strict\";n(2).initGlobal(window),function(){var t=n(4);n(156)(t)}()},function(t,e,n){\"use strict\";var a,o=n(3),r=o.APLUS,i=o.APLUS_QUEUE,s=o.GOLDLOG,u=o.GOLDLOG_QUEUE,c=!1;try{\"undefined\"!=typeof window&&(a=window,c=!0)}catch(t){a={},c=!1}e.getContext=function(){return a},e.isWeb=function(){return\"undefined\"!=typeof window&&window},e.initGlobal=function(t){a=t?t:{v:1,aplus:{},aplus_queue:[]};var e,n;if(c)try{e=a.aplus||a.goldlog||(a.aplus={});var o=a.goldlog_queue||(a.goldlog_queue=[]);n=a.aplus_queue||(a.aplus_queue=[]),n=o.concat(n)}catch(t){}else e=a.aplus,n=a.aplus_queue;return a.aplus=a.goldlog=e,a.aplus_queue=a.goldlog_queue=n,a};var l=function(t){if(t===r||t===s){var e=a[r]||a[s];return e||(e=a[r]=a[s]={}),e}var n=u,o=i;if(t===o||t===n){var c=a[o]||a[n];return c||(c=a[o]=a[n]=[]),c}};e.getGlobalValue=l,e.setGlobalValue=function(t,e){a[t]=e};var p=function(t){var e;try{var n=l(r);e=n[t]}catch(t){e=\"\"}finally{return e}};e.getGoldlogVal=p;var f=function(t,e){var n=!1;try{var a=l(r);t&&(a[t]=e,n=!0)}catch(t){n=!1}finally{return n}};e.setGoldlogVal=f,e.getClientInfo=function(){return p(\"_aplus_client\")||{}}},function(t,e){var n=\"aplus\",a=\"goldlog\",o=n+\"_queue\",r=a+\"_queue\",i=\"mw_change\",s=\"MetaInfo\",u=\"append\"+s,c=\"set\"+s,l=\"http\",p=\"_pubsub\",f=\"other\",g=\"2101\",d=\"2201\",m=\"2202\",_=\"19999\",h=\"1023\",v=\"1010\",b=3e4,y=18e5,S=\"ekvs\",A=1e4,E=1,T=1,I=3e3,P=\"$$_page_start\",w=\"$$_page_end\",C=\"$$_app_start\",M=\"$$_app_end\",x=\"aplus_user_profile\",O=\"imprint\",L=n+\"-idtype\",U=n+\"-jsbridge-only\",k=n+\"-page-config\",R=n+\"-skip-apv-rules\",N=n+\"-rhost-v\",G=n+\"-rhost-g\",D=n+\"-forward-domain\",V=n+\"-forward-event-filter\",j=\"autoGetOpenid\",F=n+\"-forward-appkey\";t.exports={PAGE_ENTER:\"PAGE_ENTER\",ETAG_EVENT_NAME:\"etag\",CURRENT_PAGE_CONFIG:\"CURRENT_PAGE_CONFIG\",_ANONY_ID:\"_anony_id\",_DEV_ID:\"_dev_id\",_USER_ID:\"_user_id\",_CNA:\"cna\",DEFAULT_CODE:f,OTHER:_,EVENT_MAP:{2101:\"click\",2201:\"exposure\",2202:\"exposure\",19999:f,1023:\"app_show\",1010:\"app_hide_or_unload\"},EVENT_ID_MAP:{EXP:d,IMPEXP:m,CLK:g,OTHER:_,SHOW:h,H_OR_U:v},APLUS:n,APLUS_CONFIG:\"APLUS_CONFIG\",GOLDLOG:a,UNSUBSCRIBE:n+\".\"+n+p+\".unsubscribe\",SUBSCRIBE:n+\".\"+n+p+\".subscribe\",PUBLISH:n+\".\"+n+p+\".publish\",CACHE_PUBS:n+\".\"+n+p+\".cachePubs\",APLUS_UNIVERSAL:n+\"_universal\",APLUS_QUEUE:o,GOLDLOG_QUEUE:r,COMPLETE:\"complete\",PV_CODE:\"2001\",EXP_CODE:d,CLK_CODE:g,OTHER_CODE:_,CLK:\"CLK\",EXP:\"EXP\",SPM_CNT:\"spm-cnt\",SPM_URL:\"spm-url\",SPM_PRE:\"spm-pre\",MW_CHANGE_PV:i+\"_pv\",MW_CHANGE_HJLJ:i+\"_hjlj\",HTTP:l+\":\",HTTPS:\"https:\",APPEND_META_INFO:u,SET_META_INFO:c,APLUS_APPEND_META_INFO:n+\".\"+u,APLUS_SET_META_INFO:n+\".\"+c,PVID:\"pvid\",openAPIs:[\"send\",\"enter\",\"sendPV\",\"record\",\"combineRecord\",\"recordUdata\",\"requestVTConfig\",\"requestRemoteConfig\",\"setPageSPM\",\"setMetaInfo\",\"appendMetaInfo\",\"updatePageProperties\",\"updateNextPageProperties\",\"updatePageUtparam\",\"updateNextPageUtparam\",\"pageAppear\",\"pageDisappear\",\"pageDisAppear\",\"skipPage\",\"updatePageName\",\"updatePageUrl\",\"requestPageAllProperties\",\"updateSessionProperties\",\"getPageSpmUrl\",\"getPageSpmPre\",\"updateNextPageUtparamCnt\",\"setPageName\",\"getElementSPM\",\"getAutoElementSPM\",\"setUserProfile\",\"getUserProfile\",\"getCna\"],SESSION_INTERVAL:b,SESSION_PAUSE_TIME:\"session_pause_time\",IMPRINT:\"imprint\",CURRENT_SESSION:\"current_session\",MAX_EVENTID_LENGTH:128,MAX_PROPERTY_KEY_LENGTH:256,MAX_PROPERTY_KEYS_COUNT:100,FAILED_REQUESTS:\"failed_requests\",REQUESTS:\"requests\",SHARES:\"shares\",APLUS_SSRC:\"_aplus_ssrc\",ARMS_TRACE:\"_arms_trace\",EKVS:S,EVENT_MAX_COUNT:A,MEMORY_MAX_COUNT:E,MAX_QUEUE_COUNT:T,EVENT_SEND_DEFAULT_INTERVAL:I,PAGE_START:P,PAGE_END:w,APP_START:C,APP_END:M,USER_PROFILE_KEY:x,SHARE_CACHE_INTERVAL:y,IMPRINT:O,ID_TYPE:L,GLOBAL_PROPERTY:\"globalproperty\",JSBRIDGE_ONLY:U,PAGE_CONFIG:k,APLUS_SKIP_APV_RULES:R,APLUS_PV_DOMAIN:N,APLUS_EKV_DOMAIN:G,APLUS_FORWARD_DOMAIN:D,APLUS_IMPRINT_VERSION:\"APLUS_IMPRINT_VERSION\",APLUS_REMOTE_CONFIG:\"APLUS_REMOTE_CONFIG\",RANK:\"ekv_rank\",WEB_EVENT_SUFFIX:\"/web_logs\",WEB_PC_PV_SUFFIX:\"v.gif\",WEB_WAP_PV_SUFFIX:\"m.gif\",PAGE_LEAVE:\"$$_page_leave\",APLUS_DOM_CHANGE:\"APLUS_DOM_CHANGE\",APLUS_PAGE_CHANGE:\"APLUS_PAGE_CHANGE\",PERFORMANCE_WARING:\"$$_perf_warning\",START_ID:\"START_ID\",AUTO_GET_OPENID:j,APLUS_LATEAST_UTM:\"APLUS_LATEAST_UTM\",APLUS_FORWARD_EVENT_FILTER:V,APLUS_FORWARD_APPKEY:F,APLUS_RHOST_V:n+\"-rhost-v\",APLUS_CPVDATA:n+\"-cpvdata\",APLUS_EXDATA:n+\"-exdata\",APLUS_EXINFO:n+\"-exinfo\",APLUS_LOG_PIPE:n+\"-log-pipe\",APLUS_TRACK_COMBINE:n+\"-track-combine\",APLUS_COOKIES:n+\"-cookies\",APLUS_CODELESS_TRACK_CONFIG:\"_\"+n+\"_codeless_track_config\",APLUS_AUTO_CLK:n+\"-auto-clk\",APLUS_AUTO_EXP:n+\"-auto-exp\",APLUS_AUTO_PV:n+\"-auto-pv\",APLUS_BRIDGE_NAME:n+\"-bridge-name\",APLUS_MINI_REQUEST_TIMEOUT:n+\"-request-timeout\",APLUS_VT_CONFIG_URL:n+\"-vt-cfg-url\",APLUS_EXPOSURE_EVENT_CAN_REPEAT:n+\"-exposure-event-can-repeat\",APLUS_IGNORE_LIFECYCLES:n+\"-ignore-lifecycles\",APLUS_TRACK_DEBUG_ID:n+\"-track-debug-id\",APLUS_SINGLE_RECORD_LOGKEYS:n+\"-single-record-logkeys\",APLUS_GOKEY_ISOLATE:n+\"-gokey-isolate\",APLUS_AUTOTRACK_ENABLED:n+\"-autotrack-enabled\",APLUS_AUTOTRACK_ENABLED_REMOTE:n+\"-autotrack-enabled-remote\",APLUS_AUTOTRACK_CONFIG:n+\"-autotrack-config\",APLUS_AUTO_TRACK_CONFIG_IMPORT:n+\"-auto-track-config-import\",APLUS_AUTOTRACK_CONFIG_REMOTE:n+\"-autotrack-config-remote\",APLUS_EVENT_LIMITRATES:n+\"-event-limitrates\",APLUS_DISABLE_AUTOEVENT:n+\"-disable-autoevent\",APLUS_DISABLE_AUTOEVENT_REMOTE:n+\"-disable-autoevent\",APLUS_DISABLE_AUTOPV:n+\"-disable-apv\",APLUS_DISABLE_AUTOPV_REMOTE:n+\"-disable-apv-remote\",APLUS_DEVICE_ENABLE:n+\"-device-enable\",APLUS_USER_PROFILE:n+\"-user-profile\",APLUS_CNA_ENABLE:n+\"-cna-enable\",APLUS_CNA_MODE:n+\"-cna-mode\",APLUS_ETAG_TIMEOUT:n+\"-etag-timeout\",APLUS_SPA_TYPE:n+\"-spa-type\",APLUS_MONITOR_ENABLE:n+\"-monitor-enable\",APLUS_OBSERVATIONS:\"_\"+n+\"_observations\",APLUS_REPORT_RATE:n+\"-report-rate\",APLUS_CNA_MONITOR:n+\"-cna-monitor\",APLUS_MMSTAT_TIMEOUT:n+\"-mmstat-timeout\",APLUS_REMOTE_CONTROL:n+\"-remote-control\",APLUS_CNA_STABILITY:n+\"-cna-stability\",APLUS_AUTO_PID:n+\"-auto-pid\"}},function(t,e,n){t.exports={metaInfo:{\"aplus-ifr-pv\":\"0\",\"aplus-rhost-v\":\"log.mmstat.com\",\"aplus-rhost-g\":\"gm.mmstat.com\",\"aplus-channel\":\"WS\",appId:\"60506758\",sdkId:\"customSdkId\",\"aplus-cpvdata\":{},\"aplus-exdata\":{},\"aplus-globaldata\":{},\"aplus-mmstat-timeout\":\"10000\",\"aplus-toUT\":\"auto\",\"aplus-track-combine\":\"on\",\"aplus-vt-auto-userfn-enable\":\"on\",\"aplus-cna-enable\":\"on\",\"aplus-cna-mode\":\"CK\",\"aplus-auto-track-config-import\":\"off\",\"aplus-form-track\":\"off\",\"aplus-gokey-isolate\":\"on\",\"aplus-only-update-page-properties\":\"off\",\"aplus-spm-from-url\":\"on\",\"aplus-user-profile\":{},\"aplus-report-rate\":{},\"aplus-single-record-logkeys\":[],\"aplus-cross-day-auto-pv\":\"off\",\"aplus-cna-monitor\":\"off\",\"aplus-cna-stability\":\"off\",\"aplus-auto-pid\":\"on\",\"aplus-monitor-enable\":\"off\",\"aplus-remote-control\":\"on\"},globalConfig:{isAli:!0,APLUS_QUEUE:\"aplus_queue\",ETAG_STORAGE_KEY:\"__ETAG__CNA__ID__\",script_name:\"aplus.js\",NAME_STORAGE_KEYS:{REFERRER:\"wm_referrer\",REFERRER_PV_ID:\"refer_pv_id\",LOST_PV_PAGE_DURATION:\"lost_pv_page_duration\",LOST_PV_PAGE_SPMAB:\"lost_pv_page_spmab\",LOST_PV_PAGE:\"lost_pv_page\",LOST_PV_PAGE_MSG:\"lost_pv_page_msg\"},lver:\"1.13.27\"},plugins:[{name:\"aplus_body_ready\",path:n(5)},{name:\"pubsub\",path:n(6)},{name:\"aplus_client\",path:n(11)},{name:\"aplus_meta_inject\",path:n(15)},{name:\"aplus_remote_control\",path:n(49)},{name:\"aplus_observer\",path:n(51)},{name:\"aplus_ac\",path:n(53)},{name:\"aplus_ae\",path:n(72)},{name:\"name_storage\",path:n(80)},{name:\"record_lost_pv\",path:n(83),config:{lostPvRecordRatio:.01}},{name:\"aplus_monitor\",path:n(85),config:{obsoleteInterRecordRatio:\"0.01\",jsErrorRecordRatio:\"0.01\",browserSupportRatio:\"0.01\"}},{name:\"aplus_web_http_ali\",path:n(92)},{name:\"aplus_log_inject\",path:n(95),deps:[\"aplus_meta_inject\"],config:{plugins:{pv:[{name:\"etag\",path:n(96)},{name:\"pha_trackinfo\",path:n(100)},{name:\"when_to_sendpv\",path:n(101),config:{aplusWaiting:\"\"}},{name:\"where_to_send\",path:n(102),config:{method:\"GET\",url:\"//log.mmstat.com/v.gif\"}},{name:\"what_to_send\",path:n(103),config:{pvdataToUt:{}}},{name:\"cookie_data\",path:n(104)},{name:\"what_to_sendpv_userdata\",path:n(105),deps:[\"what_to_send\"]},{name:\"what_to_sendpv_userdata_web\",path:n(106),deps:[\"what_to_send\",\"what_to_sendpv_userdata\"]},{name:\"what_to_sendpv_ut2\",path:n(108),deps:[\"what_to_send\"]},{name:\"can_to_sendpv\",path:n(109),config:{flag:\"NO\"}},{name:\"after_pv\",path:n(114)}],hjlj:[{name:\"etag\",path:n(96)},{name:\"pha_trackinfo\",path:n(100)},{name:\"where_to_send\",path:n(102),deps:[],config:{method:\"GET\",url:\"//gm.mmstat.com/\",ac_atpanel:\"//ac.mmstat.com/\",tblogUrl:\"//log.mmstat.com/\"}},{name:\"what_to_send\",path:n(103),deps:[]},{name:\"cookie_data\",path:n(104)},{name:\"what_to_hjlj_userdata\",path:n(115),deps:[\"what_to_send\"]},{name:\"what_to_hjlj_userdata_web\",path:n(116),deps:[\"what_to_send\",\"what_to_hjlj_userdata\"]},{name:\"what_to_hjlj_ut2\",path:n(117),deps:[\"what_to_send\"]}]}}},{name:\"aplus_spm_inject\",path:n(118)},{name:\"aplus_api\",path:n(132)},{name:\"meta_queue\",path:n(141)},{name:\"etag\",path:n(96)},{name:\"etag_web_sync\",path:n(143)},{name:\"aplus_queue\",path:n(144)},{name:\"hot_loader\",path:n(145),config:{urlRules:[{id:\"aplus_webvt_messager\",rule:\"aplus_webvt_messager\",cacheType:\"sessionStorage\",cdnPath:[\"https://d.alicdn.com/alilog/mlog/aplus_webvt_messager.js\",\"https://d.alicdn.com/alilog/mlog/aplus_track_debug.js\"]},{id:\"aplus_track_debug_id\",cacheType:\"sessionStorage\",rule:\"aplus_track_debug_id\",cdnPath:[\"https://d.alicdn.com/alilog/mlog/aplus_track_debug.js\"]},{id:\"aplus_auto_register\",rule:\"aplus_auto_register=true\",cacheType:\"sessionStorage\",allowIframeLoad:!0,cdnPath:[\"https://d.alicdn.com/alilog/aplus/1.13.9/plugin/aplus_auto_register.js\"]},{id:\"aplus_heat\",rule:\"aplus_heat=true\",cacheType:\"cookie\",allowIframeLoad:!0,cdnPath:[\"https://o.alicdn.com/alilog/aplus-visual-client/heat.js\"]}]}},{name:\"hot_sufei_pc\",path:n(146)},{name:\"aplus_apv\",path:n(147),deps:[\"aplus_log_inject\",\"aplus_api\"]},{name:\"aplus_form_track\",path:n(150)}]}},function(t,e){\"use strict\";t.exports=function(){return{run:function(t,e){var n=setInterval(function(){document.getElementsByTagName(\"body\").length&&(clearInterval(n),n=null,e())},50);return setTimeout(function(){n&&clearInterval(n)},1e3),1e3}}}},function(t,e,n){var a=n(7),o=n(2);t.exports=function(){return{run:function(){var t=o.getGlobalValue(\"aplus\");t.aplus_pubsub||(t.aplus_pubsub=a.create())}}}},function(t,e,n){var a=n(8);t.exports=a.extend({subscribeOnce:function(t,e){this.callable(e);var n,a=this;return this.subscribe.call(this,t,n=function(){a.unsubscribe.call(a,t,n);var o=Array.prototype.slice.call(arguments);e.apply(a,o)}),this}})},function(t,e,n){\"use strict\";var a=n(9),o=n(10),r=function(t){for(var e=t.length,n=new Array(e-1),a=1;a0){for(var a=0;a0)for(var i=0;i\",A=u&&u.createElement(\"div\"),E=[],T={isAliapp:!1,webkit:void 0,edge:void 0,trident:void 0,gecko:void 0,presto:void 0,chrome:void 0,safari:void 0,firefox:void 0,ie:void 0,ieMode:void 0,opera:void 0,mobile:void 0,core:void 0,shell:void 0,phantomjs:void 0,os:void 0,ipad:void 0,iphone:void 0,ipod:void 0,ios:void 0,android:void 0,nodejs:void 0,extraName:void 0,extraVersion:void 0};if(A&&A.getElementsByTagName&&(A.innerHTML=S.replace(y,\"\"),E=A.getElementsByTagName(\"s\")),E.length>0){for(d(t,T),i=b[0],s=b[1];i<=s;i++)if(A.innerHTML=S.replace(y,i),E.length>0){T[v=\"ie\"]=i;break}!T.ie&&(r=m(t))&&(T[v=\"ie\"]=r)}else((o=t.match(/AppleWebKit\\/*\\s*([\\d.]*)/i))||(o=t.match(/Safari\\/([\\d.]*)/)))&&o[1]?(T[h=\"webkit\"]=g(o[1]),(o=t.match(/OPR\\/(\\d+\\.\\d+)/))&&o[1]?T[v=\"opera\"]=g(o[1]):(o=t.match(/Chrome\\/([\\d.]*)/))&&o[1]?T[v=\"chrome\"]=g(o[1]):(o=t.match(/\\/([\\d.]*) Safari/))&&o[1]?T[v=\"safari\"]=g(o[1]):T.safari=T.webkit,(o=t.match(/Edge\\/([\\d.]*)/))&&o[1]&&(h=v=\"edge\",T[h]=g(o[1])),/ Mobile\\//.test(t)&&t.match(/iPad|iPod|iPhone/)?(T.mobile=\"apple\",o=t.match(/OS ([^\\s]*)/),o&&o[1]&&(T.ios=g(o[1].replace(\"_\",\".\"))),a=\"ios\",o=t.match(/iPad|iPod|iPhone/),o&&o[0]&&(T[o[0].toLowerCase()]=T.ios)):/ Android/i.test(t)?(/Mobile/.test(t)&&(a=T.mobile=\"android\"),o=t.match(/Android ([^\\s]*);/),o&&o[1]&&(T.android=g(o[1]))):(o=t.match(/NokiaN[^\\/]*|Android \\d\\.\\d|webOS\\/\\d\\.\\d/))&&(T.mobile=o[0].toLowerCase()),(o=t.match(/PhantomJS\\/([^\\s]*)/))&&o[1]&&(T.phantomjs=g(o[1]))):(o=t.match(/Presto\\/([\\d.]*)/))&&o[1]?(T[h=\"presto\"]=g(o[1]),(o=t.match(/Opera\\/([\\d.]*)/))&&o[1]&&(T[v=\"opera\"]=g(o[1]),(o=t.match(/Opera\\/.* Version\\/([\\d.]*)/))&&o[1]&&(T[v]=g(o[1])),(o=t.match(/Opera Mini[^;]*/))&&o?T.mobile=o[0].toLowerCase():(o=t.match(/Opera Mobi[^;]*/))&&o&&(T.mobile=o[0]))):(r=m(t))?(T[v=\"ie\"]=r,d(t,T)):(o=t.match(/Gecko/))&&(T[h=\"gecko\"]=.1,(o=t.match(/rv:([\\d.]*)/))&&o[1]&&(T[h]=g(o[1]),/Mobile|Tablet/.test(t)&&(T.mobile=\"firefox\")),(o=t.match(/Firefox\\/([\\d.]*)/))&&o[1]&&(T[v=\"firefox\"]=g(o[1])));if(!T[v]){var I=t.match(/Ali\\w+\\(\\w+\\/(\\d+\\.)+\\d+\\)/);if(I){T.isAliapp=!0;var P=I[0],w=\"\",C=\"\",M=P.match(/(\\d+\\.)+\\d+/);M&&(w=M[0],C=P.replace(\"/\"+w,\"\").replace(/\\(|\\)/g,\"\")),T[v=C]=w}}a||(a=e());var x,O,L;if(!n(\"type\",\"application/vnd.chromium.remoting-viewer\")){x=\"scoped\"in u.createElement(\"style\"),L=\"v8Locale\"in c;try{O=c.external||void 0}catch(t){}if(o=t.match(/360SE/))l=\"360\";else if((o=t.match(/SE\\s([\\d.]*)/))||O&&\"SEVersion\"in O)l=\"sougou\",f=g(o[1])||.1;else if((o=t.match(/Maxthon(?:\\/)+([\\d.]*)/))&&O){l=\"maxthon\";try{f=g(O.max_version||o[1])}catch(t){f=.1}}else x&&L?l=\"360se\":x||L||!/Gecko\\)\\s+Chrome/.test(p)||T.opera||T.edge||(l=\"360ee\")}(o=t.match(/TencentTraveler\\s([\\d.]*)|QQBrowser\\/([\\d.]*)/))?(l=\"tt\",f=g(o[2])||.1):(o=t.match(/LBBROWSER/))||O&&\"LiebaoGetVersion\"in O?l=\"liebao\":(o=t.match(/TheWorld/))?(l=\"theworld\",f=3):(o=t.match(/TaoBrowser\\/([\\d.]*)/))?(l=\"taobao\",f=g(o[1])||.1):(o=t.match(/UCBrowser\\/([\\d.]*)/))&&(l=\"uc\",f=g(o[1])||.1),T.os=a,T.core=T.core||h,T.shell=v,T.ieMode=T.ie&&u.documentMode||T.ie,T.extraName=l,T.extraVersion=f;var U=c.screen.width,k=c.screen.height;return T.resolution=U+\"x\"+k,T}function o(t){function e(t){return Object.prototype.toString.call(t)}function n(t,n,a){if(\"[object Function]\"==e(n)&&(n=n(a)),!n)return null;var o={name:t,version:\"\"},r=e(n);if(n===!0)return o;if(\"[object String]\"===r){if(a.indexOf(n)!==-1)return o}else if(n.exec){var i=n.exec(a);if(i)return i.length>=2&&i[1]?o.version=i[1].replace(/_/g,\".\"):o.version=\"\",o}}var a={name:\"other\",version:\"\"};t=(t||\"\").toLowerCase();for(var o=[[\"nokia\",function(t){return t.indexOf(\"nokia \")!==-1?/\\bnokia ([0-9]+)?/:/\\bnokia([a-z0-9]+)?/}],[\"samsung\",function(t){return t.indexOf(\"samsung\")!==-1?/\\bsamsung(?:[ \\-](?:sgh|gt|sm))?-([a-z0-9]+)/:/\\b(?:sgh|sch|gt|sm)-([a-z0-9]+)/}],[\"wp\",function(t){return t.indexOf(\"windows phone \")!==-1||t.indexOf(\"xblwp\")!==-1||t.indexOf(\"zunewp\")!==-1||t.indexOf(\"windows ce\")!==-1}],[\"pc\",\"windows\"],[\"ipad\",\"ipad\"],[\"ipod\",\"ipod\"],[\"iphone\",/\\biphone\\b|\\biph(\\d)/],[\"mac\",\"macintosh\"],[\"mi\",/\\bmi[ \\-]?([a-z0-9 ]+(?= build|\\)))/],[\"hongmi\",/\\bhm[ \\-]?([a-z0-9]+)/],[\"aliyun\",/\\baliyunos\\b(?:[\\-](\\d+))?/],[\"meizu\",function(t){return t.indexOf(\"meizu\")>=0?/\\bmeizu[\\/ ]([a-z0-9]+)\\b/:/\\bm([0-9x]{1,3})\\b/}],[\"nexus\",/\\bnexus ([0-9s.]+)/],[\"huawei\",function(t){var e=/\\bmediapad (.+?)(?= build\\/huaweimediapad\\b)/;return t.indexOf(\"huawei-huawei\")!==-1?/\\bhuawei\\-huawei\\-([a-z0-9\\-]+)/:e.test(t)?e:/\\bhuawei[ _\\-]?([a-z0-9]+)/}],[\"lenovo\",function(t){return t.indexOf(\"lenovo-lenovo\")!==-1?/\\blenovo\\-lenovo[ \\-]([a-z0-9]+)/:/\\blenovo[ \\-]?([a-z0-9]+)/}],[\"zte\",function(t){return/\\bzte\\-[tu]/.test(t)?/\\bzte-[tu][ _\\-]?([a-su-z0-9\\+]+)/:/\\bzte[ _\\-]?([a-su-z0-9\\+]+)/}],[\"vivo\",/\\bvivo(?: ([a-z0-9]+))?/],[\"htc\",function(t){return/\\bhtc[a-z0-9 _\\-]+(?= build\\b)/.test(t)?/\\bhtc[ _\\-]?([a-z0-9 ]+(?= build))/:/\\bhtc[ _\\-]?([a-z0-9 ]+)/}],[\"oppo\",/\\boppo[_]([a-z0-9]+)/],[\"konka\",/\\bkonka[_\\-]([a-z0-9]+)/],[\"sonyericsson\",/\\bmt([a-z0-9]+)/],[\"coolpad\",/\\bcoolpad[_ ]?([a-z0-9]+)/],[\"lg\",/\\blg[\\-]([a-z0-9]+)/],[\"android\",/\\bandroid\\b|\\badr\\b/],[\"blackberry\",function(t){return t.indexOf(\"blackberry\")>=0?/\\bblackberry\\s?(\\d+)/:\"bb10\"}]],r=0;rc.length?u:c,a=decodeURIComponent(a)}else n=e.match(o),a=n&&2===n.length?n[1]:\"\"}catch(t){}finally{return a}}function o(t,e){var n,a,o,r,i,s=e||location.href,c=\"&\",l=[];return u(t,function(t,e){new RegExp(t+\"=\").test(s)||l.push(t+\"=\"+e)}),0===l.length?s:(s.indexOf(\"#\")!==-1&&(o=s.split(\"#\"),s=o.shift(),a=o.join(\"#\")),r=s.split(\"?\"),i=r.length-1,o=r[0].split(\"//\"),o=o[o.length-1].split(\"/\"),i>0&&(n=r.pop(),s=r.join(\"?\")),n&&i>1&&n.indexOf(\"&\")==-1&&n.indexOf(\"%\")!==-1&&(c=\"%26\"),s=s+\"?\"+l.join(\"&\")+(n?c+n:\"\")+(a?\"#\"+a:\"\"))}function r(t){var e=s(location.hash)+\"\";c.pushIntoGoldlogQueue(\"aplus.on\",[window,\"hashchange\",function(){e!==s(location.hash)&&(e=s(location.hash)+\"\",t&&\"function\"==typeof t&&t(e,p))}])}function i(t){function e(e){var a=\"\";if(e){a=e&&e.arguments&&e.arguments.length>2&&e.arguments[2];var o=/^http|https/.test(a)?a:location.protocol+\"//\"+location.host+a;location.href!==o&&setTimeout(function(){t&&\"function\"==typeof t&&t(a,f)},0)}else a=location.pathname+location.search,a!==n&&setTimeout(function(){t&&\"function\"==typeof t&&t(a,f)},0);n=a}var n=location.pathname+location.search;if(history.pushState&&window.addEventListener){c.pushIntoGoldlogQueue(\"aplus.on\",[window,\"pushState\",function(t){e(t)}]),c.pushIntoGoldlogQueue(\"aplus.on\",[window,\"popstate\",function(){e()}]);var a=l.getMetaCnt(\"aplus-track-replacestate\")||aplus.getMetaInfo&&aplus.getMetaInfo(\"aplus-track-replacestate\");a&&c.pushIntoGoldlogQueue(\"aplus.on\",[window,\"replaceState\",function(t){e(t)}])}}function s(t){var e=\"\";return t&&(e=t.indexOf(\"?\")!=-1?t.split(\"?\")[0]:t),e}var u=n(18);e.addParamsIntoUrl=o,e.getParamFromUrl=a,e.getSPMFromUrl=function(t){return a(\"spm\",t)},e.getQueryFromUrl=function(){function t(t){for(var e=decodeURIComponent(t),n=e.indexOf(\"?\")+1,a=e.substring(n),o=Object.create(null),r=a.split(\"&\"),i=0;i-1)try{S[e]=JSON.parse(n)}catch(t){g.logger({msg:\"the content of meta<\"+e+\"> is invalid json string\"})}if(e===A)try{u=S[e]=JSON.parse(h.getMetaCnt(e))}catch(t){}}}),d(E,function(t){S[t]=h.getMetaCnt(t)}),S.spm_protocol=o(t),u&&(S=p.assign(S,u));var e,n,i=[\"aplus-rate-ahot\"],s=i.length;for(e=0;e\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " TaoWorld跨境供货平台\n", " \n", " \n", " \n", "\n", "\n", "\n", " \n", " \n", " \n", "\n", " \n", " \n", " \n", "\n", "\n", " \n", "
  • 联系人
  • 商品
  • 聊天记录
\"暂无数据\"
请输入搜索词
Gentle Township
12:23
可以呢 这两天会安排发出哦
最近联系过
卓梵实木家居
2025/12/20
喜欢的亲亲抓紧购买吧,今日下单还有好礼相送哦! https://item.taobao.com/item.htm?id=752045743811 \u0006
最近联系过
功成地毯工厂
2025/12/19
/:)-(
最近联系过
领风灯具旗舰店
2025/12/14
双十二活动倒计时最后一天活动截止到今晚23:59分结束 宝宝有选好可以咨询客服下单哟
最近联系过
Ephdarren海外旗舰店
2025/12/14
/:087亲,再打扰您一下,双十二活动还剩最后一天了哦/:066\n", "心动不如行动,看上的别犹豫,活动过了价格会全面上涨的呢~/:^x^\n", "遇到喜欢的东西,就把它买下来吧,钱并不是真的花掉了/:087\n", "我们支持365天延迟发货的哦/:066
最近联系过
揽月摘星品牌家具
2025/12/12
[图片]
最近联系过
Tide leader家居
2025/12/12
双十二活动接近尾声了,家具还有哪些顾虑呢,消费券可以叠加立减,提前订购没装修好,也支持延迟发货哟/:081
最近联系过
玲芬美家LF HOME
2025/12/12
🔥亲亲,今晚双12秒杀狂欢夜了哦,您之前看中的家具可以入手啦!\n", "✅全店商品立减12% + 店铺优惠券 + 大额消费券,最高500元!\n", "⏰晚上20:00-23:59 还有超低折扣秒杀价,售卖4小时\n", "🛒现在提前加入购物车锁定优惠特权,定好闹钟准时付款\n", "🎁本店所有商品均支持【等通知发货】\n", " \u0006
最近联系过
皇利莱旗舰店
2025/12/12
/:066天猫双12狂欢节最后一天倒计时!\n", "\n", "今晚8点!为庆祝活动最终冲刺,我们将开启最后一波限时95折抢购福利!! 8-12点 ,只限4个小时!全场灯具, 价格直降+店铺券+限时95折+官方立减12%(上不封顶)+满额赠送安装服务,买灯即送LED三色光源一套,365天保价,让你购物无忧,而且,以上优惠可以叠加使用,力度空前巨大!\n", "\n", "只有4个小时,只有4个小时哦!快来抢购吧!\n", "别再错过了,不然再等一年哦!/:066\n", " \u0006
最近联系过
云栖木作
2025/12/10
亲主要在考虑什么呢?货物早拍下早发货的哦~而且咱们这边售后都是专业一对一的,不用担心货物收到没有保险哦~
最近联系过
勤朗旗舰店
2025/12/10
亲,您是在挑选款式呢,还是挑好款式准备下单呢 ? \n", "/:^x^现在双十二活动, 喜欢就下手了哦/:-F
最近联系过
意百万家具品牌店
2025/12/08
双十二活动开始了亲。没有下单可以早点下单发货
最近联系过
锦盛实木家居
2025/12/07
/:$双十二福利来袭,亲爱的不要错过活动福利哦!!\n", "\n", "12月8日 0点——12月14日 24 点:\n", "①.全店商品无需凑单,下单享官方立减12%!\n", "②.更有店铺券满 200 减25,可与官方立减叠加使用,上不封顶哈!\n", "③.下单即送限量精美台灯/抱枕哦!\n", "④.活动期间购买,可优先安排发货,还能享受 30 天保价服务呢~ https://item.taobao.com/item.htm?id=838023940983 \u0006
最近联系过
玖传世家具
2025/12/07
✈️88VIP领券链接:https://pages-fast.m.taobao.com/wow/z/blackvip/v/home?x-ssr=true&disableNav \u0006
最近联系过
Gentle Township
t-2217567810350-0
2026-03-10 12:21:57
平台交易号:3278844338603995979,您好,之前联系过您多次,仍未收到回复。03月12日前可以发货吗?如果近期无法发货,我们只能申请退款处理。
tb006113750:七愿
2026-03-10 12:22:23
您好
tb006113750:七愿
2026-03-10 12:23:09
可以呢 这两天会安排发出哦
表情
发送图片
发送视频
38 / 500
平台交易号:3278844338603995979,您好,之前联系过您多次,
产品服务能力由钉钉提供
Gentle Township
近三个月订单
没有数据
\n", "
TaoWorld跨境供货平台,链接天猫淘宝海量货源,为跨境卖家、代采代购商提供全链路的解决方案。
\n", " \n", " \n", "\n", "
AliPrice
AliPrice
仅本次浏览关闭插件浮标
永久关闭此网站插件浮标
使用快捷键Ctrl+Shift+4快速唤起
或在设置中重新启用(永久关闭则不支持此网站快捷键唤起使用)
全网图搜
店雷达1688选品工具,快速查找热销、飙升、上新商品;新品早发现,好商品早知道!
去看看
'\"\"\"" ] }, { "cell_type": "code", "execution_count": 64, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'平台交易号:3277680960636538788,您好,之前联系过您多次,仍未收到回复。03月11日前可以发货吗?如果近期无法发货,我们只能申请退款处理。'" ] }, "execution_count": 64, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from lxml import etree\n", "\n", "def get_input_content(html):\n", " tree = etree.HTML(html)\n", " content = tree.xpath(\n", " \"//div[contains(@class, 'ww_input--')]//pre[contains(@class, 'edit')]/text()\"\n", " )\n", " return \"\".join(content).strip() if content else \"\"\n", "\n", "get_input_content(web_page_attr)\n" ] }, { "cell_type": "code", "execution_count": 66, "metadata": {}, "outputs": [ { "ename": "IndexError", "evalue": "list index out of range", "output_type": "error", "traceback": [ "\u001b[31m---------------------------------------------------------------------------\u001b[39m", "\u001b[31mIndexError\u001b[39m Traceback (most recent call last)", "\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[66]\u001b[39m\u001b[32m, line 58\u001b[39m\n\u001b[32m 52\u001b[39m results.append(result)\n\u001b[32m 53\u001b[39m \u001b[38;5;28;01mreturn\u001b[39;00m {\n\u001b[32m 54\u001b[39m \u001b[33m\"\u001b[39m\u001b[33mshopname\u001b[39m\u001b[33m\"\u001b[39m: shopname,\n\u001b[32m 55\u001b[39m \u001b[33m\"\u001b[39m\u001b[33mmessages\u001b[39m\u001b[33m\"\u001b[39m: results\n\u001b[32m 56\u001b[39m }\n\u001b[32m---> \u001b[39m\u001b[32m58\u001b[39m \u001b[43mget_latest_chats_records\u001b[49m\u001b[43m(\u001b[49m\u001b[43mweb_attr\u001b[49m\u001b[43m)\u001b[49m\n", "\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[66]\u001b[39m\u001b[32m, line 4\u001b[39m, in \u001b[36mget_latest_chats_records\u001b[39m\u001b[34m(html)\u001b[39m\n\u001b[32m 2\u001b[39m \u001b[38;5;250m\u001b[39m\u001b[33;03m\"\"\"提取最新平台交易号及其后续聊天记录\"\"\"\u001b[39;00m\n\u001b[32m 3\u001b[39m tree = etree.HTML(html)\n\u001b[32m----> \u001b[39m\u001b[32m4\u001b[39m container = \u001b[43mtree\u001b[49m\u001b[43m.\u001b[49m\u001b[43mxpath\u001b[49m\u001b[43m(\u001b[49m\u001b[33;43m\"\u001b[39;49m\u001b[33;43m//*[contains(@class, \u001b[39;49m\u001b[33;43m'\u001b[39;49m\u001b[33;43mIMChat--ww_container--rcKMqZZ\u001b[39;49m\u001b[33;43m'\u001b[39;49m\u001b[33;43m)]\u001b[39;49m\u001b[33;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[32;43m0\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[32m 5\u001b[39m shopname = container.xpath(\u001b[33m\"\u001b[39m\u001b[33m//*[contains(@class, \u001b[39m\u001b[33m'\u001b[39m\u001b[33mIMChat--ww_header--qyQJ4Lp\u001b[39m\u001b[33m'\u001b[39m\u001b[33m)]/text()\u001b[39m\u001b[33m\"\u001b[39m)[\u001b[32m0\u001b[39m].strip()\n\u001b[32m 6\u001b[39m message_item_lines = container.xpath(\u001b[33m\"\u001b[39m\u001b[33m//*[contains(@class, \u001b[39m\u001b[33m'\u001b[39m\u001b[33mmessage-item-lin\u001b[39m\u001b[33m'\u001b[39m\u001b[33m)]\u001b[39m\u001b[33m\"\u001b[39m)\n", "\u001b[31mIndexError\u001b[39m: list index out of range" ] } ], "source": [ "def get_latest_chats_records(html):\n", " \"\"\"提取最新平台交易号及其后续聊天记录\"\"\"\n", " tree = etree.HTML(html)\n", " container = tree.xpath(\"//*[contains(@class, 'IMChat--ww_container--rcKMqZZ')]\")[0]\n", " shopname = container.xpath(\"//*[contains(@class, 'IMChat--ww_header--qyQJ4Lp')]/text()\")[0].strip()\n", " message_item_lines = container.xpath(\"//*[contains(@class, 'message-item-lin')]\")\n", "\n", " # 找到最新的平台交易号\n", " latest_order_index = -1\n", " latest_order_number = None\n", "\n", " for i, msg in enumerate(message_item_lines):\n", " content_x = msg.xpath(\".//pre[contains(@class, 'edit')]/text()\")\n", " content = ','.join(content_x).strip() if content_x else ''\n", " if '平台交易号' in content:\n", " latest_order_index = i\n", " if latest_order_index == -1:\n", " return {\n", " \"shopname\": shopname,\n", " \"messages\": []\n", " }\n", " \n", " results = []\n", " for i in range(latest_order_index, len(message_item_lines)):\n", " msg = message_item_lines[i]\n", " message_id = msg.get('id', '')\n", " \n", " # 昵称\n", " nick_x = msg.xpath(\".//div[contains(@class, 'nick')]/text()\")\n", " nick = nick_x[0].strip() if nick_x else ''\n", " \n", " # 时间\n", " time_x = msg.xpath(\".//div[contains(@class, 'time')]/text()\")\n", " time_str = time_x[0].strip() if time_x else ''\n", " try:\n", " time = datetime.strptime(time_str, \"%Y-%m-%d %H:%M:%S\") if time_str else None\n", " except ValueError:\n", " time = None\n", "\n", " # 内容或图片\n", " content_x = msg.xpath(\".//pre[contains(@class, 'edit')]/text()\")\n", " content = ','.join(content_x).strip() if content_x else ''\n", " img_x = msg.xpath(\".//img[contains(@class, 'imui-msg-img')]/@src\")\n", " if img_x:\n", " content = img_x[0]\n", " result = {\n", " 'id': message_id,\n", " 'nick': nick,\n", " 'time': time.strftime(\"%Y-%m-%d %H:%M:%S\") if time else None,\n", " 'content': content\n", " }\n", " results.append(result)\n", " return {\n", " \"shopname\": shopname,\n", " \"messages\": results\n", " }\n", "\n", "get_latest_chats_records(web_attr)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from lxml import etree\n", "from datetime import datetime\n", "import re\n", "\n", "\n", "def get_latest_chats_records(html):\n", " \"\"\"提取最近一次出现“平台交易号”的消息及其后续聊天记录(通用版)\"\"\"\n", " tree = etree.HTML(html)\n", " if tree is None:\n", " return {\"shopname\": \"\", \"messages\": []}\n", "\n", " def first_or_default(lst, default=\"\"):\n", " return lst[0].strip() if lst and isinstance(lst[0], str) else (lst[0] if lst else default)\n", "\n", " # 1) 找聊天主容器:优先找包含 header/body/input 的 ww_container--\n", " containers = tree.xpath(\n", " \"//div[contains(@class, 'ww_container--') \"\n", " \"and .//div[contains(@class, 'ww_header--')] \"\n", " \"and .//div[contains(@class, 'ww_body--')]]\"\n", " )\n", "\n", " if containers:\n", " container = containers[0]\n", " else:\n", " # 兜底:直接在全局查\n", " container = tree\n", "\n", " # 2) 店铺名\n", " shopname_x = container.xpath(\".//div[contains(@class, 'ww_header--')]/text()\")\n", " shopname = first_or_default(shopname_x, \"\")\n", "\n", " # 3) 消息行\n", " message_item_lines = container.xpath(\".//div[contains(@class, 'message-item-line')]\")\n", "\n", " if not message_item_lines:\n", " return {\n", " \"shopname\": shopname,\n", " \"messages\": []\n", " }\n", "\n", " # 4) 找最后一个包含“平台交易号”的消息\n", " latest_order_index = -1\n", " latest_order_number = None\n", "\n", " for i, msg in enumerate(message_item_lines):\n", " text_nodes = msg.xpath(\".//pre[contains(@class, 'edit')]//text()\")\n", " content = \"\".join(text_nodes).strip()\n", "\n", " if \"平台交易号\" in content:\n", " latest_order_index = i\n", "\n", " # 顺手提取交易号\n", " m = re.search(r\"平台交易号[::]\\s*([0-9]+)\", content)\n", " if m:\n", " latest_order_number = m.group(1)\n", "\n", " if latest_order_index == -1:\n", " return {\n", " \"shopname\": shopname,\n", " \"latest_order_number\": None,\n", " \"messages\": []\n", " }\n", "\n", " # 5) 收集从最新平台交易号开始的所有消息\n", " results = []\n", "\n", " for msg in message_item_lines[latest_order_index:]:\n", " message_id = msg.get(\"id\", \"\")\n", "\n", " # 昵称\n", " nick_x = msg.xpath(\".//div[contains(@class, 'nick')]/text()\")\n", " nick = first_or_default(nick_x, \"\")\n", "\n", " # 时间\n", " time_x = msg.xpath(\".//div[contains(@class, 'time')]/text()\")\n", " time_str = first_or_default(time_x, \"\")\n", " formatted_time = None\n", "\n", " if time_str:\n", " try:\n", " dt = datetime.strptime(time_str, \"%Y-%m-%d %H:%M:%S\")\n", " formatted_time = dt.strftime(\"%Y-%m-%d %H:%M:%S\")\n", " except ValueError:\n", " formatted_time = time_str\n", "\n", " # 文本内容\n", " text_nodes = msg.xpath(\".//pre[contains(@class, 'edit')]//text()\")\n", " content = \"\".join(text_nodes).strip()\n", "\n", " # 图片兜底:优先取消息区域图片\n", " if not content:\n", " img_x = msg.xpath(\".//img/@src\")\n", " if img_x:\n", " content = img_x[0]\n", "\n", " results.append({\n", " \"id\": message_id,\n", " \"nick\": nick,\n", " \"time\": formatted_time,\n", " \"content\": content\n", " })\n", "\n", " return {\n", " \"shopname\": shopname,\n", " \"latest_order_number\": latest_order_number,\n", " \"messages\": results\n", " }\n", "get_latest_chats_records(web_attr)" ] }, { "cell_type": "code", "execution_count": 69, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "<>:29: SyntaxWarning: invalid escape sequence '\\/'\n", "<>:29: SyntaxWarning: invalid escape sequence '\\/'\n", "C:\\Users\\joker\\AppData\\Local\\Temp\\ipykernel_96992\\2613722200.py:29: SyntaxWarning: invalid escape sequence '\\/'\n", " !function(t){function e(a){if(n[a])return n[a].exports;var o=n[a]={exports:{},id:a,loaded:!1};return t[a].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p=\"\",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){\"use strict\";n(2).initGlobal(window),function(){var t=n(4);n(156)(t)}()},function(t,e,n){\"use strict\";var a,o=n(3),r=o.APLUS,i=o.APLUS_QUEUE,s=o.GOLDLOG,u=o.GOLDLOG_QUEUE,c=!1;try{\"undefined\"!=typeof window&&(a=window,c=!0)}catch(t){a={},c=!1}e.getContext=function(){return a},e.isWeb=function(){return\"undefined\"!=typeof window&&window},e.initGlobal=function(t){a=t?t:{v:1,aplus:{},aplus_queue:[]};var e,n;if(c)try{e=a.aplus||a.goldlog||(a.aplus={});var o=a.goldlog_queue||(a.goldlog_queue=[]);n=a.aplus_queue||(a.aplus_queue=[]),n=o.concat(n)}catch(t){}else e=a.aplus,n=a.aplus_queue;return a.aplus=a.goldlog=e,a.aplus_queue=a.goldlog_queue=n,a};var l=function(t){if(t===r||t===s){var e=a[r]||a[s];return e||(e=a[r]=a[s]={}),e}var n=u,o=i;if(t===o||t===n){var c=a[o]||a[n];return c||(c=a[o]=a[n]=[]),c}};e.getGlobalValue=l,e.setGlobalValue=function(t,e){a[t]=e};var p=function(t){var e;try{var n=l(r);e=n[t]}catch(t){e=\"\"}finally{return e}};e.getGoldlogVal=p;var f=function(t,e){var n=!1;try{var a=l(r);t&&(a[t]=e,n=!0)}catch(t){n=!1}finally{return n}};e.setGoldlogVal=f,e.getClientInfo=function(){return p(\"_aplus_client\")||{}}},function(t,e){var n=\"aplus\",a=\"goldlog\",o=n+\"_queue\",r=a+\"_queue\",i=\"mw_change\",s=\"MetaInfo\",u=\"append\"+s,c=\"set\"+s,l=\"http\",p=\"_pubsub\",f=\"other\",g=\"2101\",d=\"2201\",m=\"2202\",_=\"19999\",h=\"1023\",v=\"1010\",b=3e4,y=18e5,S=\"ekvs\",A=1e4,E=1,T=1,I=3e3,P=\"$$_page_start\",w=\"$$_page_end\",C=\"$$_app_start\",M=\"$$_app_end\",x=\"aplus_user_profile\",O=\"imprint\",L=n+\"-idtype\",U=n+\"-jsbridge-only\",k=n+\"-page-config\",R=n+\"-skip-apv-rules\",N=n+\"-rhost-v\",G=n+\"-rhost-g\",D=n+\"-forward-domain\",V=n+\"-forward-event-filter\",j=\"autoGetOpenid\",F=n+\"-forward-appkey\";t.exports={PAGE_ENTER:\"PAGE_ENTER\",ETAG_EVENT_NAME:\"etag\",CURRENT_PAGE_CONFIG:\"CURRENT_PAGE_CONFIG\",_ANONY_ID:\"_anony_id\",_DEV_ID:\"_dev_id\",_USER_ID:\"_user_id\",_CNA:\"cna\",DEFAULT_CODE:f,OTHER:_,EVENT_MAP:{2101:\"click\",2201:\"exposure\",2202:\"exposure\",19999:f,1023:\"app_show\",1010:\"app_hide_or_unload\"},EVENT_ID_MAP:{EXP:d,IMPEXP:m,CLK:g,OTHER:_,SHOW:h,H_OR_U:v},APLUS:n,APLUS_CONFIG:\"APLUS_CONFIG\",GOLDLOG:a,UNSUBSCRIBE:n+\".\"+n+p+\".unsubscribe\",SUBSCRIBE:n+\".\"+n+p+\".subscribe\",PUBLISH:n+\".\"+n+p+\".publish\",CACHE_PUBS:n+\".\"+n+p+\".cachePubs\",APLUS_UNIVERSAL:n+\"_universal\",APLUS_QUEUE:o,GOLDLOG_QUEUE:r,COMPLETE:\"complete\",PV_CODE:\"2001\",EXP_CODE:d,CLK_CODE:g,OTHER_CODE:_,CLK:\"CLK\",EXP:\"EXP\",SPM_CNT:\"spm-cnt\",SPM_URL:\"spm-url\",SPM_PRE:\"spm-pre\",MW_CHANGE_PV:i+\"_pv\",MW_CHANGE_HJLJ:i+\"_hjlj\",HTTP:l+\":\",HTTPS:\"https:\",APPEND_META_INFO:u,SET_META_INFO:c,APLUS_APPEND_META_INFO:n+\".\"+u,APLUS_SET_META_INFO:n+\".\"+c,PVID:\"pvid\",openAPIs:[\"send\",\"enter\",\"sendPV\",\"record\",\"combineRecord\",\"recordUdata\",\"requestVTConfig\",\"requestRemoteConfig\",\"setPageSPM\",\"setMetaInfo\",\"appendMetaInfo\",\"updatePageProperties\",\"updateNextPageProperties\",\"updatePageUtparam\",\"updateNextPageUtparam\",\"pageAppear\",\"pageDisappear\",\"pageDisAppear\",\"skipPage\",\"updatePageName\",\"updatePageUrl\",\"requestPageAllProperties\",\"updateSessionProperties\",\"getPageSpmUrl\",\"getPageSpmPre\",\"updateNextPageUtparamCnt\",\"setPageName\",\"getElementSPM\",\"getAutoElementSPM\",\"setUserProfile\",\"getUserProfile\",\"getCna\"],SESSION_INTERVAL:b,SESSION_PAUSE_TIME:\"session_pause_time\",IMPRINT:\"imprint\",CURRENT_SESSION:\"current_session\",MAX_EVENTID_LENGTH:128,MAX_PROPERTY_KEY_LENGTH:256,MAX_PROPERTY_KEYS_COUNT:100,FAILED_REQUESTS:\"failed_requests\",REQUESTS:\"requests\",SHARES:\"shares\",APLUS_SSRC:\"_aplus_ssrc\",ARMS_TRACE:\"_arms_trace\",EKVS:S,EVENT_MAX_COUNT:A,MEMORY_MAX_COUNT:E,MAX_QUEUE_COUNT:T,EVENT_SEND_DEFAULT_INTERVAL:I,PAGE_START:P,PAGE_END:w,APP_START:C,APP_END:M,USER_PROFILE_KEY:x,SHARE_CACHE_INTERVAL:y,IMPRINT:O,ID_TYPE:L,GLOBAL_PROPERTY:\"globalproperty\",JSBRIDGE_ONLY:U,PAGE_CONFIG:k,APLUS_SKIP_APV_RULES:R,APLUS_PV_DOMAIN:N,APLUS_EKV_DOMAIN:G,APLUS_FORWARD_DOMAIN:D,APLUS_IMPRINT_VERSION:\"APLUS_IMPRINT_VERSION\",APLUS_REMOTE_CONFIG:\"APLUS_REMOTE_CONFIG\",RANK:\"ekv_rank\",WEB_EVENT_SUFFIX:\"/web_logs\",WEB_PC_PV_SUFFIX:\"v.gif\",WEB_WAP_PV_SUFFIX:\"m.gif\",PAGE_LEAVE:\"$$_page_leave\",APLUS_DOM_CHANGE:\"APLUS_DOM_CHANGE\",APLUS_PAGE_CHANGE:\"APLUS_PAGE_CHANGE\",PERFORMANCE_WARING:\"$$_perf_warning\",START_ID:\"START_ID\",AUTO_GET_OPENID:j,APLUS_LATEAST_UTM:\"APLUS_LATEAST_UTM\",APLUS_FORWARD_EVENT_FILTER:V,APLUS_FORWARD_APPKEY:F,APLUS_RHOST_V:n+\"-rhost-v\",APLUS_CPVDATA:n+\"-cpvdata\",APLUS_EXDATA:n+\"-exdata\",APLUS_EXINFO:n+\"-exinfo\",APLUS_LOG_PIPE:n+\"-log-pipe\",APLUS_TRACK_COMBINE:n+\"-track-combine\",APLUS_COOKIES:n+\"-cookies\",APLUS_CODELESS_TRACK_CONFIG:\"_\"+n+\"_codeless_track_config\",APLUS_AUTO_CLK:n+\"-auto-clk\",APLUS_AUTO_EXP:n+\"-auto-exp\",APLUS_AUTO_PV:n+\"-auto-pv\",APLUS_BRIDGE_NAME:n+\"-bridge-name\",APLUS_MINI_REQUEST_TIMEOUT:n+\"-request-timeout\",APLUS_VT_CONFIG_URL:n+\"-vt-cfg-url\",APLUS_EXPOSURE_EVENT_CAN_REPEAT:n+\"-exposure-event-can-repeat\",APLUS_IGNORE_LIFECYCLES:n+\"-ignore-lifecycles\",APLUS_TRACK_DEBUG_ID:n+\"-track-debug-id\",APLUS_SINGLE_RECORD_LOGKEYS:n+\"-single-record-logkeys\",APLUS_GOKEY_ISOLATE:n+\"-gokey-isolate\",APLUS_AUTOTRACK_ENABLED:n+\"-autotrack-enabled\",APLUS_AUTOTRACK_ENABLED_REMOTE:n+\"-autotrack-enabled-remote\",APLUS_AUTOTRACK_CONFIG:n+\"-autotrack-config\",APLUS_AUTO_TRACK_CONFIG_IMPORT:n+\"-auto-track-config-import\",APLUS_AUTOTRACK_CONFIG_REMOTE:n+\"-autotrack-config-remote\",APLUS_EVENT_LIMITRATES:n+\"-event-limitrates\",APLUS_DISABLE_AUTOEVENT:n+\"-disable-autoevent\",APLUS_DISABLE_AUTOEVENT_REMOTE:n+\"-disable-autoevent\",APLUS_DISABLE_AUTOPV:n+\"-disable-apv\",APLUS_DISABLE_AUTOPV_REMOTE:n+\"-disable-apv-remote\",APLUS_DEVICE_ENABLE:n+\"-device-enable\",APLUS_USER_PROFILE:n+\"-user-profile\",APLUS_CNA_ENABLE:n+\"-cna-enable\",APLUS_CNA_MODE:n+\"-cna-mode\",APLUS_ETAG_TIMEOUT:n+\"-etag-timeout\",APLUS_SPA_TYPE:n+\"-spa-type\",APLUS_MONITOR_ENABLE:n+\"-monitor-enable\",APLUS_OBSERVATIONS:\"_\"+n+\"_observations\",APLUS_REPORT_RATE:n+\"-report-rate\",APLUS_CNA_MONITOR:n+\"-cna-monitor\",APLUS_MMSTAT_TIMEOUT:n+\"-mmstat-timeout\",APLUS_REMOTE_CONTROL:n+\"-remote-control\",APLUS_CNA_STABILITY:n+\"-cna-stability\",APLUS_AUTO_PID:n+\"-auto-pid\"}},function(t,e,n){t.exports={metaInfo:{\"aplus-ifr-pv\":\"0\",\"aplus-rhost-v\":\"log.mmstat.com\",\"aplus-rhost-g\":\"gm.mmstat.com\",\"aplus-channel\":\"WS\",appId:\"60506758\",sdkId:\"customSdkId\",\"aplus-cpvdata\":{},\"aplus-exdata\":{},\"aplus-globaldata\":{},\"aplus-mmstat-timeout\":\"10000\",\"aplus-toUT\":\"auto\",\"aplus-track-combine\":\"on\",\"aplus-vt-auto-userfn-enable\":\"on\",\"aplus-cna-enable\":\"on\",\"aplus-cna-mode\":\"CK\",\"aplus-auto-track-config-import\":\"off\",\"aplus-form-track\":\"off\",\"aplus-gokey-isolate\":\"on\",\"aplus-only-update-page-properties\":\"off\",\"aplus-spm-from-url\":\"on\",\"aplus-user-profile\":{},\"aplus-report-rate\":{},\"aplus-single-record-logkeys\":[],\"aplus-cross-day-auto-pv\":\"off\",\"aplus-cna-monitor\":\"off\",\"aplus-cna-stability\":\"off\",\"aplus-auto-pid\":\"on\",\"aplus-monitor-enable\":\"off\",\"aplus-remote-control\":\"on\"},globalConfig:{isAli:!0,APLUS_QUEUE:\"aplus_queue\",ETAG_STORAGE_KEY:\"__ETAG__CNA__ID__\",script_name:\"aplus.js\",NAME_STORAGE_KEYS:{REFERRER:\"wm_referrer\",REFERRER_PV_ID:\"refer_pv_id\",LOST_PV_PAGE_DURATION:\"lost_pv_page_duration\",LOST_PV_PAGE_SPMAB:\"lost_pv_page_spmab\",LOST_PV_PAGE:\"lost_pv_page\",LOST_PV_PAGE_MSG:\"lost_pv_page_msg\"},lver:\"1.13.27\"},plugins:[{name:\"aplus_body_ready\",path:n(5)},{name:\"pubsub\",path:n(6)},{name:\"aplus_client\",path:n(11)},{name:\"aplus_meta_inject\",path:n(15)},{name:\"aplus_remote_control\",path:n(49)},{name:\"aplus_observer\",path:n(51)},{name:\"aplus_ac\",path:n(53)},{name:\"aplus_ae\",path:n(72)},{name:\"name_storage\",path:n(80)},{name:\"record_lost_pv\",path:n(83),config:{lostPvRecordRatio:.01}},{name:\"aplus_monitor\",path:n(85),config:{obsoleteInterRecordRatio:\"0.01\",jsErrorRecordRatio:\"0.01\",browserSupportRatio:\"0.01\"}},{name:\"aplus_web_http_ali\",path:n(92)},{name:\"aplus_log_inject\",path:n(95),deps:[\"aplus_meta_inject\"],config:{plugins:{pv:[{name:\"etag\",path:n(96)},{name:\"pha_trackinfo\",path:n(100)},{name:\"when_to_sendpv\",path:n(101),config:{aplusWaiting:\"\"}},{name:\"where_to_send\",path:n(102),config:{method:\"GET\",url:\"//log.mmstat.com/v.gif\"}},{name:\"what_to_send\",path:n(103),config:{pvdataToUt:{}}},{name:\"cookie_data\",path:n(104)},{name:\"what_to_sendpv_userdata\",path:n(105),deps:[\"what_to_send\"]},{name:\"what_to_sendpv_userdata_web\",path:n(106),deps:[\"what_to_send\",\"what_to_sendpv_userdata\"]},{name:\"what_to_sendpv_ut2\",path:n(108),deps:[\"what_to_send\"]},{name:\"can_to_sendpv\",path:n(109),config:{flag:\"NO\"}},{name:\"after_pv\",path:n(114)}],hjlj:[{name:\"etag\",path:n(96)},{name:\"pha_trackinfo\",path:n(100)},{name:\"where_to_send\",path:n(102),deps:[],config:{method:\"GET\",url:\"//gm.mmstat.com/\",ac_atpanel:\"//ac.mmstat.com/\",tblogUrl:\"//log.mmstat.com/\"}},{name:\"what_to_send\",path:n(103),deps:[]},{name:\"cookie_data\",path:n(104)},{name:\"what_to_hjlj_userdata\",path:n(115),deps:[\"what_to_send\"]},{name:\"what_to_hjlj_userdata_web\",path:n(116),deps:[\"what_to_send\",\"what_to_hjlj_userdata\"]},{name:\"what_to_hjlj_ut2\",path:n(117),deps:[\"what_to_send\"]}]}}},{name:\"aplus_spm_inject\",path:n(118)},{name:\"aplus_api\",path:n(132)},{name:\"meta_queue\",path:n(141)},{name:\"etag\",path:n(96)},{name:\"etag_web_sync\",path:n(143)},{name:\"aplus_queue\",path:n(144)},{name:\"hot_loader\",path:n(145),config:{urlRules:[{id:\"aplus_webvt_messager\",rule:\"aplus_webvt_messager\",cacheType:\"sessionStorage\",cdnPath:[\"https://d.alicdn.com/alilog/mlog/aplus_webvt_messager.js\",\"https://d.alicdn.com/alilog/mlog/aplus_track_debug.js\"]},{id:\"aplus_track_debug_id\",cacheType:\"sessionStorage\",rule:\"aplus_track_debug_id\",cdnPath:[\"https://d.alicdn.com/alilog/mlog/aplus_track_debug.js\"]},{id:\"aplus_auto_register\",rule:\"aplus_auto_register=true\",cacheType:\"sessionStorage\",allowIframeLoad:!0,cdnPath:[\"https://d.alicdn.com/alilog/aplus/1.13.9/plugin/aplus_auto_register.js\"]},{id:\"aplus_heat\",rule:\"aplus_heat=true\",cacheType:\"cookie\",allowIframeLoad:!0,cdnPath:[\"https://o.alicdn.com/alilog/aplus-visual-client/heat.js\"]}]}},{name:\"hot_sufei_pc\",path:n(146)},{name:\"aplus_apv\",path:n(147),deps:[\"aplus_log_inject\",\"aplus_api\"]},{name:\"aplus_form_track\",path:n(150)}]}},function(t,e){\"use strict\";t.exports=function(){return{run:function(t,e){var n=setInterval(function(){document.getElementsByTagName(\"body\").length&&(clearInterval(n),n=null,e())},50);return setTimeout(function(){n&&clearInterval(n)},1e3),1e3}}}},function(t,e,n){var a=n(7),o=n(2);t.exports=function(){return{run:function(){var t=o.getGlobalValue(\"aplus\");t.aplus_pubsub||(t.aplus_pubsub=a.create())}}}},function(t,e,n){var a=n(8);t.exports=a.extend({subscribeOnce:function(t,e){this.callable(e);var n,a=this;return this.subscribe.call(this,t,n=function(){a.unsubscribe.call(a,t,n);var o=Array.prototype.slice.call(arguments);e.apply(a,o)}),this}})},function(t,e,n){\"use strict\";var a=n(9),o=n(10),r=function(t){for(var e=t.length,n=new Array(e-1),a=1;a0){for(var a=0;a0)for(var i=0;i\",A=u&&u.createElement(\"div\"),E=[],T={isAliapp:!1,webkit:void 0,edge:void 0,trident:void 0,gecko:void 0,presto:void 0,chrome:void 0,safari:void 0,firefox:void 0,ie:void 0,ieMode:void 0,opera:void 0,mobile:void 0,core:void 0,shell:void 0,phantomjs:void 0,os:void 0,ipad:void 0,iphone:void 0,ipod:void 0,ios:void 0,android:void 0,nodejs:void 0,extraName:void 0,extraVersion:void 0};if(A&&A.getElementsByTagName&&(A.innerHTML=S.replace(y,\"\"),E=A.getElementsByTagName(\"s\")),E.length>0){for(d(t,T),i=b[0],s=b[1];i<=s;i++)if(A.innerHTML=S.replace(y,i),E.length>0){T[v=\"ie\"]=i;break}!T.ie&&(r=m(t))&&(T[v=\"ie\"]=r)}else((o=t.match(/AppleWebKit\\/*\\s*([\\d.]*)/i))||(o=t.match(/Safari\\/([\\d.]*)/)))&&o[1]?(T[h=\"webkit\"]=g(o[1]),(o=t.match(/OPR\\/(\\d+\\.\\d+)/))&&o[1]?T[v=\"opera\"]=g(o[1]):(o=t.match(/Chrome\\/([\\d.]*)/))&&o[1]?T[v=\"chrome\"]=g(o[1]):(o=t.match(/\\/([\\d.]*) Safari/))&&o[1]?T[v=\"safari\"]=g(o[1]):T.safari=T.webkit,(o=t.match(/Edge\\/([\\d.]*)/))&&o[1]&&(h=v=\"edge\",T[h]=g(o[1])),/ Mobile\\//.test(t)&&t.match(/iPad|iPod|iPhone/)?(T.mobile=\"apple\",o=t.match(/OS ([^\\s]*)/),o&&o[1]&&(T.ios=g(o[1].replace(\"_\",\".\"))),a=\"ios\",o=t.match(/iPad|iPod|iPhone/),o&&o[0]&&(T[o[0].toLowerCase()]=T.ios)):/ Android/i.test(t)?(/Mobile/.test(t)&&(a=T.mobile=\"android\"),o=t.match(/Android ([^\\s]*);/),o&&o[1]&&(T.android=g(o[1]))):(o=t.match(/NokiaN[^\\/]*|Android \\d\\.\\d|webOS\\/\\d\\.\\d/))&&(T.mobile=o[0].toLowerCase()),(o=t.match(/PhantomJS\\/([^\\s]*)/))&&o[1]&&(T.phantomjs=g(o[1]))):(o=t.match(/Presto\\/([\\d.]*)/))&&o[1]?(T[h=\"presto\"]=g(o[1]),(o=t.match(/Opera\\/([\\d.]*)/))&&o[1]&&(T[v=\"opera\"]=g(o[1]),(o=t.match(/Opera\\/.* Version\\/([\\d.]*)/))&&o[1]&&(T[v]=g(o[1])),(o=t.match(/Opera Mini[^;]*/))&&o?T.mobile=o[0].toLowerCase():(o=t.match(/Opera Mobi[^;]*/))&&o&&(T.mobile=o[0]))):(r=m(t))?(T[v=\"ie\"]=r,d(t,T)):(o=t.match(/Gecko/))&&(T[h=\"gecko\"]=.1,(o=t.match(/rv:([\\d.]*)/))&&o[1]&&(T[h]=g(o[1]),/Mobile|Tablet/.test(t)&&(T.mobile=\"firefox\")),(o=t.match(/Firefox\\/([\\d.]*)/))&&o[1]&&(T[v=\"firefox\"]=g(o[1])));if(!T[v]){var I=t.match(/Ali\\w+\\(\\w+\\/(\\d+\\.)+\\d+\\)/);if(I){T.isAliapp=!0;var P=I[0],w=\"\",C=\"\",M=P.match(/(\\d+\\.)+\\d+/);M&&(w=M[0],C=P.replace(\"/\"+w,\"\").replace(/\\(|\\)/g,\"\")),T[v=C]=w}}a||(a=e());var x,O,L;if(!n(\"type\",\"application/vnd.chromium.remoting-viewer\")){x=\"scoped\"in u.createElement(\"style\"),L=\"v8Locale\"in c;try{O=c.external||void 0}catch(t){}if(o=t.match(/360SE/))l=\"360\";else if((o=t.match(/SE\\s([\\d.]*)/))||O&&\"SEVersion\"in O)l=\"sougou\",f=g(o[1])||.1;else if((o=t.match(/Maxthon(?:\\/)+([\\d.]*)/))&&O){l=\"maxthon\";try{f=g(O.max_version||o[1])}catch(t){f=.1}}else x&&L?l=\"360se\":x||L||!/Gecko\\)\\s+Chrome/.test(p)||T.opera||T.edge||(l=\"360ee\")}(o=t.match(/TencentTraveler\\s([\\d.]*)|QQBrowser\\/([\\d.]*)/))?(l=\"tt\",f=g(o[2])||.1):(o=t.match(/LBBROWSER/))||O&&\"LiebaoGetVersion\"in O?l=\"liebao\":(o=t.match(/TheWorld/))?(l=\"theworld\",f=3):(o=t.match(/TaoBrowser\\/([\\d.]*)/))?(l=\"taobao\",f=g(o[1])||.1):(o=t.match(/UCBrowser\\/([\\d.]*)/))&&(l=\"uc\",f=g(o[1])||.1),T.os=a,T.core=T.core||h,T.shell=v,T.ieMode=T.ie&&u.documentMode||T.ie,T.extraName=l,T.extraVersion=f;var U=c.screen.width,k=c.screen.height;return T.resolution=U+\"x\"+k,T}function o(t){function e(t){return Object.prototype.toString.call(t)}function n(t,n,a){if(\"[object Function]\"==e(n)&&(n=n(a)),!n)return null;var o={name:t,version:\"\"},r=e(n);if(n===!0)return o;if(\"[object String]\"===r){if(a.indexOf(n)!==-1)return o}else if(n.exec){var i=n.exec(a);if(i)return i.length>=2&&i[1]?o.version=i[1].replace(/_/g,\".\"):o.version=\"\",o}}var a={name:\"other\",version:\"\"};t=(t||\"\").toLowerCase();for(var o=[[\"nokia\",function(t){return t.indexOf(\"nokia \")!==-1?/\\bnokia ([0-9]+)?/:/\\bnokia([a-z0-9]+)?/}],[\"samsung\",function(t){return t.indexOf(\"samsung\")!==-1?/\\bsamsung(?:[ \\-](?:sgh|gt|sm))?-([a-z0-9]+)/:/\\b(?:sgh|sch|gt|sm)-([a-z0-9]+)/}],[\"wp\",function(t){return t.indexOf(\"windows phone \")!==-1||t.indexOf(\"xblwp\")!==-1||t.indexOf(\"zunewp\")!==-1||t.indexOf(\"windows ce\")!==-1}],[\"pc\",\"windows\"],[\"ipad\",\"ipad\"],[\"ipod\",\"ipod\"],[\"iphone\",/\\biphone\\b|\\biph(\\d)/],[\"mac\",\"macintosh\"],[\"mi\",/\\bmi[ \\-]?([a-z0-9 ]+(?= build|\\)))/],[\"hongmi\",/\\bhm[ \\-]?([a-z0-9]+)/],[\"aliyun\",/\\baliyunos\\b(?:[\\-](\\d+))?/],[\"meizu\",function(t){return t.indexOf(\"meizu\")>=0?/\\bmeizu[\\/ ]([a-z0-9]+)\\b/:/\\bm([0-9x]{1,3})\\b/}],[\"nexus\",/\\bnexus ([0-9s.]+)/],[\"huawei\",function(t){var e=/\\bmediapad (.+?)(?= build\\/huaweimediapad\\b)/;return t.indexOf(\"huawei-huawei\")!==-1?/\\bhuawei\\-huawei\\-([a-z0-9\\-]+)/:e.test(t)?e:/\\bhuawei[ _\\-]?([a-z0-9]+)/}],[\"lenovo\",function(t){return t.indexOf(\"lenovo-lenovo\")!==-1?/\\blenovo\\-lenovo[ \\-]([a-z0-9]+)/:/\\blenovo[ \\-]?([a-z0-9]+)/}],[\"zte\",function(t){return/\\bzte\\-[tu]/.test(t)?/\\bzte-[tu][ _\\-]?([a-su-z0-9\\+]+)/:/\\bzte[ _\\-]?([a-su-z0-9\\+]+)/}],[\"vivo\",/\\bvivo(?: ([a-z0-9]+))?/],[\"htc\",function(t){return/\\bhtc[a-z0-9 _\\-]+(?= build\\b)/.test(t)?/\\bhtc[ _\\-]?([a-z0-9 ]+(?= build))/:/\\bhtc[ _\\-]?([a-z0-9 ]+)/}],[\"oppo\",/\\boppo[_]([a-z0-9]+)/],[\"konka\",/\\bkonka[_\\-]([a-z0-9]+)/],[\"sonyericsson\",/\\bmt([a-z0-9]+)/],[\"coolpad\",/\\bcoolpad[_ ]?([a-z0-9]+)/],[\"lg\",/\\blg[\\-]([a-z0-9]+)/],[\"android\",/\\bandroid\\b|\\badr\\b/],[\"blackberry\",function(t){return t.indexOf(\"blackberry\")>=0?/\\bblackberry\\s?(\\d+)/:\"bb10\"}]],r=0;rc.length?u:c,a=decodeURIComponent(a)}else n=e.match(o),a=n&&2===n.length?n[1]:\"\"}catch(t){}finally{return a}}function o(t,e){var n,a,o,r,i,s=e||location.href,c=\"&\",l=[];return u(t,function(t,e){new RegExp(t+\"=\").test(s)||l.push(t+\"=\"+e)}),0===l.length?s:(s.indexOf(\"#\")!==-1&&(o=s.split(\"#\"),s=o.shift(),a=o.join(\"#\")),r=s.split(\"?\"),i=r.length-1,o=r[0].split(\"//\"),o=o[o.length-1].split(\"/\"),i>0&&(n=r.pop(),s=r.join(\"?\")),n&&i>1&&n.indexOf(\"&\")==-1&&n.indexOf(\"%\")!==-1&&(c=\"%26\"),s=s+\"?\"+l.join(\"&\")+(n?c+n:\"\")+(a?\"#\"+a:\"\"))}function r(t){var e=s(location.hash)+\"\";c.pushIntoGoldlogQueue(\"aplus.on\",[window,\"hashchange\",function(){e!==s(location.hash)&&(e=s(location.hash)+\"\",t&&\"function\"==typeof t&&t(e,p))}])}function i(t){function e(e){var a=\"\";if(e){a=e&&e.arguments&&e.arguments.length>2&&e.arguments[2];var o=/^http|https/.test(a)?a:location.protocol+\"//\"+location.host+a;location.href!==o&&setTimeout(function(){t&&\"function\"==typeof t&&t(a,f)},0)}else a=location.pathname+location.search,a!==n&&setTimeout(function(){t&&\"function\"==typeof t&&t(a,f)},0);n=a}var n=location.pathname+location.search;if(history.pushState&&window.addEventListener){c.pushIntoGoldlogQueue(\"aplus.on\",[window,\"pushState\",function(t){e(t)}]),c.pushIntoGoldlogQueue(\"aplus.on\",[window,\"popstate\",function(){e()}]);var a=l.getMetaCnt(\"aplus-track-replacestate\")||aplus.getMetaInfo&&aplus.getMetaInfo(\"aplus-track-replacestate\");a&&c.pushIntoGoldlogQueue(\"aplus.on\",[window,\"replaceState\",function(t){e(t)}])}}function s(t){var e=\"\";return t&&(e=t.indexOf(\"?\")!=-1?t.split(\"?\")[0]:t),e}var u=n(18);e.addParamsIntoUrl=o,e.getParamFromUrl=a,e.getSPMFromUrl=function(t){return a(\"spm\",t)},e.getQueryFromUrl=function(){function t(t){for(var e=decodeURIComponent(t),n=e.indexOf(\"?\")+1,a=e.substring(n),o=Object.create(null),r=a.split(\"&\"),i=0;i-1)try{S[e]=JSON.parse(n)}catch(t){g.logger({msg:\"the content of meta<\"+e+\"> is invalid json string\"})}if(e===A)try{u=S[e]=JSON.parse(h.getMetaCnt(e))}catch(t){}}}),d(E,function(t){S[t]=h.getMetaCnt(t)}),S.spm_protocol=o(t),u&&(S=p.assign(S,u));var e,n,i=[\"aplus-rate-ahot\"],s=i.length;for(e=0;e\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " TaoWorld跨境供货平台\n", " \n", " \n", " \n", "\n", "\n", "\n", " \n", " \n", " \n", "\n", " \n", " \n", " \n", "\n", "\n", " \n", "
  • 联系人
  • 商品
  • 聊天记录
\"暂无数据\"
请输入搜索词
012345678901234567890123456789012345678901234567890123456789
角落小屋家具
13:17
9821706252365 补发三合一固定层板1个,444奶咖颗粒,428*405*16
3
最近联系过
九选家具
13:17
明天才能发
4
最近联系过
鹊禧生活家居馆
13:16
安排发货了
2
最近联系过
是是但但
下拉或点此加载更多
t-2217567810350-0
2025-09-12 18:51:10
111
t-2217567810350-0
2025-09-12 18:51:22
78778
t-2217567810350-0
2025-09-12 18:51:34
87878
t-2217567810350-0
2025-09-13 10:51:24
jkl
t-2217567810350-0
2025-09-15 09:15:41
123
t-2217567810350-0
2025-09-15 09:21:30
444
t-2217567810350-0
2025-09-15 13:08:21
123
t-2217567810350-0
2025-09-15 13:51:53
666
t-2217567810350-0
2025-09-15 13:52:55
9999
t-2217567810350-0
2025-09-16 14:24:44
666
t-2217567810350-0
2025-09-17 16:16:03
得到的
t-2217567810350-0
2025-09-18 10:06:38
早上好
t-2217567810350-0
2025-09-18 13:59:21
zsh
sowhat_cyx:冼
2025-09-18 14:38:12
151551
t-2217567810350-0
2025-09-19 09:11:44
456
t-2217567810350-0
2025-09-19 13:34:18
八嘎八嘎
t-2217567810350-0
2025-09-23 09:52:50
早上好
t-2217567810350-0
2025-09-26 10:39:37
134
t-2217567810350-0
2025-09-29 10:58:59
t-2217567810350-0
2025-09-29 10:59:08
表情
发送图片
发送视频
0 / 500
请输入消息,按Enter键 或 点击发送按钮发送
产品服务能力由钉钉提供
是是但但
近三个月订单
没有数据
\n", "
TaoWorld跨境供货平台,链接天猫淘宝海量货源,为跨境卖家、代采代购商提供全链路的解决方案。
\n", " \n", " \n", "\n", "
AliPrice
AliPrice
仅本次浏览关闭插件浮标
永久关闭此网站插件浮标
使用快捷键Ctrl+Shift+4快速唤起
或在设置中重新启用(永久关闭则不支持此网站快捷键唤起使用)
全网图搜
店雷达1688选品工具,快速查找热销、飙升、上新商品;新品早发现,好商品早知道!
去看看
'\"\"\"" ] }, { "cell_type": "code", "execution_count": 103, "metadata": {}, "outputs": [], "source": [ "msg_list = {'shopname': '简梵家居90', 'latest_order_number': '3278852331057995979', 'messages': [{'id': '3998708106340.PNM', 'nick': 't-2217567810350-0', 'time': '2026-03-10 14:55:42', 'content': '平台交易号:3278852331057995979,您好,之前联系过您多次,仍未收到回复。03月12日前可以发货吗?如果近期无法发货,我们只能申请退款处理。'}, {'id': '4008743628843.PNM', 'nick': 'tb809265783186', 'time': '2026-03-10 15:28:22', 'content': '可以'}]}" ] }, { "cell_type": "code", "execution_count": 104, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'上传成功'" ] }, "execution_count": 104, "metadata": {}, "output_type": "execute_result" } ], "source": [ "def upload_msg_to_cpmaso(msg_list):\n", " url = \"http://192.168.100.44/rpaapi/upload_system_chat_msg\"\n", " payload = {\n", " \"messages\": msg_list[\"messages\"]\n", " }\n", "\n", " headers = {\n", " \"Content-Type\": \"application/json\"\n", " }\n", "\n", " try:\n", " resp = requests.post(url, headers=headers, data=json.dumps(payload))\n", " if resp.status_code == 200:\n", " return \"上传成功\"\n", " else:\n", " return(f\"上传失败: {resp.status_code} - {resp.text}\")\n", " except Exception as e:\n", " print(f\"请求异常: {e}\")\n", "upload_msg_to_cpmaso(msg_list)" ] }, { "cell_type": "code", "execution_count": 105, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'success': False, 'msg': '影刀调用get_next_session_task_id失败', 'task_id': None}" ] }, "execution_count": 105, "metadata": {}, "output_type": "execute_result" } ], "source": [ "def get_next_session_task_id(platform, task_type):\n", " \"\"\"获得redis内对应平台和上游任务的对话任务id\n", " Example response:\n", " {\"key\": queue_name, \"task_id\": item}, 200\n", " {\"message\": \"没有可用的会话任务\"}, 404\n", " {\"message\": \"获取下一个会话任务ID失败\"}, 500\n", "\n", " \"\"\"\n", " url = f\"http://192.168.100.44/rpaapi/get_next_session_task_id/{platform}/{task_type}\"\n", " try:\n", " response = requests.get(url, timeout=10)\n", " res = response.json()\n", " if response.status_code == 200:\n", " return {\"success\": True, \"msg\": f\"成功获得会话任务id{res['task_id']}\", \"task_id\": res['task_id']}\n", " elif response.status_code == 404:\n", " return {\"success\": False, \"msg\": res['message'], \"task_id\": None}\n", " elif response.status_code == 500:\n", " return {\"success\": False, \"msg\": \"服务器获取下一个会话任务ID失败\", \"task_id\": None}\n", " except Exception as e:\n", " return {\"success\": False, \"msg\": \"影刀调用get_next_session_task_id失败\", \"task_id\": None}\n", " \n", "get_next_session_task_id(\"taotian\", \"follow_up\")" ] }, { "cell_type": "code", "execution_count": 74, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'sessid=bd8e2a3ea362030b9c55ac71e4e7ac6f'" ] }, "execution_count": 74, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from login_for_cookie import Vc\n", "Vc(\"robot1\",\"a123456\")" ] } ], "metadata": { "kernelspec": { "display_name": "funny", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.12.12" }, "orig_nbformat": 4 }, "nbformat": 4, "nbformat_minor": 2 }