{ "cells": [ { "cell_type": "code", "execution_count": 2, "id": "340bac5f", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{'code': 200, 'data': 'ok', 'message': 'SUCCESS'}\n" ] } ], "source": [ "import requests\n", "\n", "cookies = {\n", " 'hive-adminSESSIONID': '25fbadf1-4cb6-408f-9e3a-b73e55c47852',\n", " 'sensorsdata2015jssdkcross': '%7B%22distinct_id%22%3A%224210192048793363%22%2C%22first_id%22%3A%2219b6df4cc821138-0de2a4b89caaa9-4c657b58-1327104-19b6df4cc8319da%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E7%9B%B4%E6%8E%A5%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC_%E7%9B%B4%E6%8E%A5%E6%89%93%E5%BC%80%22%2C%22%24latest_referrer%22%3A%22%22%7D%2C%22%24device_id%22%3A%2219b6df4cc821138-0de2a4b89caaa9-4c657b58-1327104-19b6df4cc8319da%22%7D',\n", " '_yg_prod': 'EkX_f7K7eYt61spccZtpCE7FGQAxK5DfP_4PB6A0jCrCT1LYfszIPQQqjcJjPPEZL0J2pO07cfp8VG64XiDvBfYzvRdjXVIjT2D1e5La90Kcyw0I2IqvVma_W4j__vTE3I3zSTbNFRCPiizeGHdACpRaLiy_a2VE',\n", "}\n", "\n", "headers = {\n", " 'accept': 'application/json, text/plain, */*',\n", " 'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',\n", " 'content-type': 'application/json;charset=UTF-8',\n", " 'origin': 'https://manage.f6yc.com',\n", " 'priority': 'u=1, i',\n", " 'referer': 'https://manage.f6yc.com/',\n", " 'sec-ch-ua': '\"Not:A-Brand\";v=\"99\", \"Microsoft Edge\";v=\"145\", \"Chromium\";v=\"145\"',\n", " 'sec-ch-ua-mobile': '?0',\n", " 'sec-ch-ua-platform': '\"Windows\"',\n", " 'sec-fetch-dest': 'empty',\n", " 'sec-fetch-mode': 'cors',\n", " 'sec-fetch-site': 'same-origin',\n", " 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36 Edg/145.0.0.0',\n", " 'x-requested-with': 'XMLHttpRequest',\n", " # 'cookie': 'hive-adminSESSIONID=25fbadf1-4cb6-408f-9e3a-b73e55c47852; sensorsdata2015jssdkcross=%7B%22distinct_id%22%3A%224210192048793363%22%2C%22first_id%22%3A%2219b6df4cc821138-0de2a4b89caaa9-4c657b58-1327104-19b6df4cc8319da%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E7%9B%B4%E6%8E%A5%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC_%E7%9B%B4%E6%8E%A5%E6%89%93%E5%BC%80%22%2C%22%24latest_referrer%22%3A%22%22%7D%2C%22%24device_id%22%3A%2219b6df4cc821138-0de2a4b89caaa9-4c657b58-1327104-19b6df4cc8319da%22%7D; _yg_prod=EkX_f7K7eYt61spccZtpCE7FGQAxK5DfP_4PB6A0jCrCT1LYfszIPQQqjcJjPPEZL0J2pO07cfp8VG64XiDvBfYzvRdjXVIjT2D1e5La90Kcyw0I2IqvVma_W4j__vTE3I3zSTbNFRCPiizeGHdACpRaLiy_a2VE',\n", "}\n", "\n", "json_data = {\n", " 'orgId': '11240984669917217520',\n", " 'remark': '238888',\n", " 'endDate': '2027-12-19',\n", "}\n", "\n", "response = requests.post('https://manage.f6yc.com/hive-admin/org/resetEndDate', cookies=cookies, headers=headers, json=json_data)\n", "\n", "# Note: json_data will not be serialized by requests\n", "# exactly as it was in the original request.\n", "#data = '{\"orgId\":\"11240984669917217520\",\"remark\":\"2333333\",\"endDate\":\"2027-12-30\"}'\n", "#response = requests.post('https://manage.f6yc.com/hive-admin/org/resetEndDate', cookies=cookies, headers=headers, data=data)\n", "print(response.json())" ] }, { "cell_type": "code", "execution_count": null, "id": "9a6552b0", "metadata": {}, "outputs": [], "source": [ "import requests\n", "\n", "cookies = {\n", " 'hive-adminSESSIONID': '7fa76a20-ca37-4a57-b0af-af0dd7c18d58',\n", " 'sensorsdata2015jssdkcross': '%7B%22distinct_id%22%3A%224210192048793363%22%2C%22first_id%22%3A%2219b6df4cc821138-0de2a4b89caaa9-4c657b58-1327104-19b6df4cc8319da%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E7%9B%B4%E6%8E%A5%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC_%E7%9B%B4%E6%8E%A5%E6%89%93%E5%BC%80%22%2C%22%24latest_referrer%22%3A%22%22%7D%2C%22%24device_id%22%3A%2219b6df4cc821138-0de2a4b89caaa9-4c657b58-1327104-19b6df4cc8319da%22%7D',\n", " '_yg_prod': 'EkX_f7K7eYt61spccZtpCE7FGQAxK5DfP_4PB6A0jCrCT1LYfszIPQQqjcJjPPEZL0J2pO07cfp8VG64XiDvBfYzvRdjXVIjT2D1e5La90Kcyw0I2IqvVma_W4j__vTE3I3zSTbNFRCPiizeGHdACpRaLiy_a2VE',\n", "}\n", "\n", "headers = {\n", " 'accept': 'application/json, text/plain, */*',\n", " 'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',\n", " 'content-type': 'application/json;charset=UTF-8',\n", " 'origin': 'https://manage.f6yc.com',\n", " 'priority': 'u=1, i',\n", " 'referer': 'https://manage.f6yc.com/',\n", " 'sec-ch-ua': '\"Not:A-Brand\";v=\"99\", \"Microsoft Edge\";v=\"145\", \"Chromium\";v=\"145\"',\n", " 'sec-ch-ua-mobile': '?0',\n", " 'sec-ch-ua-platform': '\"Windows\"',\n", " 'sec-fetch-dest': 'empty',\n", " 'sec-fetch-mode': 'cors',\n", " 'sec-fetch-site': 'same-origin',\n", " 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36 Edg/145.0.0.0',\n", " 'x-requested-with': 'XMLHttpRequest',\n", " # 'cookie': 'hive-adminSESSIONID=7fa76a20-ca37-4a57-b0af-af0dd7c18d58; sensorsdata2015jssdkcross=%7B%22distinct_id%22%3A%224210192048793363%22%2C%22first_id%22%3A%2219b6df4cc821138-0de2a4b89caaa9-4c657b58-1327104-19b6df4cc8319da%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E7%9B%B4%E6%8E%A5%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC_%E7%9B%B4%E6%8E%A5%E6%89%93%E5%BC%80%22%2C%22%24latest_referrer%22%3A%22%22%7D%2C%22%24device_id%22%3A%2219b6df4cc821138-0de2a4b89caaa9-4c657b58-1327104-19b6df4cc8319da%22%7D; _yg_prod=EkX_f7K7eYt61spccZtpCE7FGQAxK5DfP_4PB6A0jCrCT1LYfszIPQQqjcJjPPEZL0J2pO07cfp8VG64XiDvBfYzvRdjXVIjT2D1e5La90Kcyw0I2IqvVma_W4j__vTE3I3zSTbNFRCPiizeGHdACpRaLiy_a2VE',\n", "}\n", "\n", "json_data = {\n", " 'orderId': 150619791,\n", " 'newEndDate': '2026-11-28T16:00:00.000Z',\n", " 'oldEndDate': 1795968000000, # 与实际显示日期有差别,加了28天,部分准确\n", " 'memo': '1234',\n", " 'type': 2, # 服务类型有关 不同服务对应不同\n", " 'orderType': '',\n", " 'clearAllValidPeriod': False,\n", " 'orgId': '11240984669917090055',\n", "}\n", "\n", "response = requests.post(\n", " 'https://manage.f6yc.com/hive-admin/order/achievement/modifyEndDate',\n", " cookies=cookies,\n", " headers=headers,\n", " json=json_data,\n", ")\n", "\n", "# Note: json_data will not be serialized by requests\n", "# exactly as it was in the original request.\n", "#data = '{\"orderId\":150619791,\"newEndDate\":\"2026-11-28T16:00:00.000Z\",\"oldEndDate\":1795968000000,\"memo\":\"1234\",\"type\":2,\"orderType\":\"\",\"clearAllValidPeriod\":false,\"orgId\":\"11240984669917090055\"}'\n", "#response = requests.post(\n", "# 'https://manage.f6yc.com/hive-admin/order/achievement/modifyEndDate',\n", "# cookies=cookies,\n", "# headers=headers,\n", "# data=data,\n", "#)\n" ] } ], "metadata": { "kernelspec": { "display_name": "F6+宜搭+其它", "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.13.11" } }, "nbformat": 4, "nbformat_minor": 5 }