Commit a76c5d54 authored by 张鹏程's avatar 张鹏程

项目交接

1. 删除 jupyter 中不需要的代码
parent cd24d641
......@@ -24,7 +24,7 @@ class AutomaticHandler(BaseHandler):
self.auto_dataset = {"data_basic":{"model_name":self.model_name,"count":self.user_count},
"data_detail":[]}
try :
url = 'http://172.21.10.25:9012/manage/features'
url = 'http://rc-model-exec.quantgroups.com/manage/features'
r = requests.post(url,data={'codes':self.model_name})
if r.status_code == 200:
response = r.json()
......
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"a = (2,3)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"df = pd.read_clipboard()"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
"df_list = df['表名'].apply(lambda x : x.split(','))"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [],
"source": [
"_list = []\n",
"for i in df_list:\n",
" _list.append(i)"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [],
"source": [
"df_new = pd.DataFrame(columns=['原始表','目标表'] ,data=_list)"
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"outputs": [],
"source": [
"df_new.to_clipboard()"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"aa = [\n",
" [\n",
" \"oTQGos8OucLTPXY3mt3NEIhLs9fo\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http://passportapi.xyqb.com/wechat/receiveCode/xyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587977022,\\\"fromUser\\\":\\\"oTQGos8OucLTPXY3mt3NEIhLs9fo\\\",\\\"eventKey\\\":\\\"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http://passportapi.xyqb.com/wechat/receiveCode/xyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587977022\\\",\\\"EventKey\\\":\\\"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http://passportapi.xyqb.com/wechat/receiveCode/xyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos8OucLTPXY3mt3NEIhLs9fo\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 16:43:42\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos8OucLTPXY3mt3NEIhLs9fo\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http://passportapi.xyqb.com/wechat/receiveCode/xyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587977022,\\\"fromUser\\\":\\\"oTQGos8OucLTPXY3mt3NEIhLs9fo\\\",\\\"eventKey\\\":\\\"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http://passportapi.xyqb.com/wechat/receiveCode/xyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587977022\\\",\\\"EventKey\\\":\\\"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http://passportapi.xyqb.com/wechat/receiveCode/xyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos8OucLTPXY3mt3NEIhLs9fo\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 16:43:42\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos8OucLTPXY3mt3NEIhLs9fo\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http://passportapi.xyqb.com/wechat/receiveCode/xyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587977380,\\\"fromUser\\\":\\\"oTQGos8OucLTPXY3mt3NEIhLs9fo\\\",\\\"eventKey\\\":\\\"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http://passportapi.xyqb.com/wechat/receiveCode/xyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587977380\\\",\\\"EventKey\\\":\\\"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http://passportapi.xyqb.com/wechat/receiveCode/xyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos8OucLTPXY3mt3NEIhLs9fo\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 16:49:40\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos9aPwbj03rIXQhx-HMGtamE\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://h5.xyqb.com/weixin/home?registerFrom=198\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587967344,\\\"fromUser\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"eventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587967344\\\",\\\"EventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 14:02:24\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos9aPwbj03rIXQhx-HMGtamE\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://h5.xyqb.com/weixin/home?registerFrom=198\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587972780,\\\"fromUser\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"eventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587972780\\\",\\\"EventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 15:33:00\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos9aPwbj03rIXQhx-HMGtamE\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://h5.xyqb.com/weixin/home?registerFrom=198\",\n",
" \"{\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587986841\\\",\\\"EventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"MsgType\\\":\\\"event\\\"},\\\"createTime\\\":1587986841,\\\"event\\\":\\\"VIEW\\\",\\\"eventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"fromUser\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"hardWare\\\":{},\\\"menuId\\\":450291630,\\\"msgType\\\":\\\"event\\\",\\\"scanCodeInfo\\\":{},\\\"sendLocationInfo\\\":{},\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\"}\",\n",
" \"event\",\n",
" \"2020-04-27 19:27:21\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos9aPwbj03rIXQhx-HMGtamE\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http://passportapi.xyqb.com/wechat/receiveCode/xyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\",\n",
" \"{\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587986848\\\",\\\"EventKey\\\":\\\"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http://passportapi.xyqb.com/wechat/receiveCode/xyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"MsgType\\\":\\\"event\\\"},\\\"createTime\\\":1587986848,\\\"event\\\":\\\"VIEW\\\",\\\"eventKey\\\":\\\"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http://passportapi.xyqb.com/wechat/receiveCode/xyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\\\",\\\"fromUser\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"hardWare\\\":{},\\\"menuId\\\":450291630,\\\"msgType\\\":\\\"event\\\",\\\"scanCodeInfo\\\":{},\\\"sendLocationInfo\\\":{},\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\"}\",\n",
" \"event\",\n",
" \"2020-04-27 19:27:28\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos6LIChMOuJkgRClgt_4uVK4\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://h5.xyqb.com/weixin/home?registerFrom=198\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587958979,\\\"fromUser\\\":\\\"oTQGos6LIChMOuJkgRClgt_4uVK4\\\",\\\"eventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587958979\\\",\\\"EventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos6LIChMOuJkgRClgt_4uVK4\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 11:42:59\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos9aPwbj03rIXQhx-HMGtamE\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://h5.xyqb.com/weixin/home?registerFrom=198\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587959155,\\\"fromUser\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"eventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587959155\\\",\\\"EventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 11:45:55\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos6LIChMOuJkgRClgt_4uVK4\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"TEMPLATESENDJOBFINISH\",\n",
" \"\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587959700,\\\"fromUser\\\":\\\"oTQGos6LIChMOuJkgRClgt_4uVK4\\\",\\\"msgId\\\":1314787290912456705,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"TEMPLATESENDJOBFINISH\\\",\\\"allFieldsMap\\\":{\\\"Status\\\":\\\"success\\\",\\\"CreateTime\\\":\\\"1587959700\\\",\\\"Event\\\":\\\"TEMPLATESENDJOBFINISH\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos6LIChMOuJkgRClgt_4uVK4\\\",\\\"MsgType\\\":\\\"event\\\",\\\"MsgID\\\":\\\"1314787290912456705\\\"},\\\"status\\\":\\\"success\\\"}\",\n",
" \"event\",\n",
" \"2020-04-27 11:55:00\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos6LIChMOuJkgRClgt_4uVK4\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http://passportapi.xyqb.com/wechat/receiveCode/xyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587959784,\\\"fromUser\\\":\\\"oTQGos6LIChMOuJkgRClgt_4uVK4\\\",\\\"eventKey\\\":\\\"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http://passportapi.xyqb.com/wechat/receiveCode/xyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587959784\\\",\\\"EventKey\\\":\\\"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http://passportapi.xyqb.com/wechat/receiveCode/xyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos6LIChMOuJkgRClgt_4uVK4\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 11:56:24\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos8OucLTPXY3mt3NEIhLs9fo\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"TEMPLATESENDJOBFINISH\",\n",
" \"\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587960019,\\\"fromUser\\\":\\\"oTQGos8OucLTPXY3mt3NEIhLs9fo\\\",\\\"msgId\\\":1314792644823941126,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"TEMPLATESENDJOBFINISH\\\",\\\"allFieldsMap\\\":{\\\"Status\\\":\\\"success\\\",\\\"CreateTime\\\":\\\"1587960019\\\",\\\"Event\\\":\\\"TEMPLATESENDJOBFINISH\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos8OucLTPXY3mt3NEIhLs9fo\\\",\\\"MsgType\\\":\\\"event\\\",\\\"MsgID\\\":\\\"1314792644823941126\\\"},\\\"status\\\":\\\"success\\\"}\",\n",
" \"event\",\n",
" \"2020-04-27 12:00:19\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos6LIChMOuJkgRClgt_4uVK4\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http://passportapi.xyqb.com/wechat/receiveCode/xyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587958835,\\\"fromUser\\\":\\\"oTQGos6LIChMOuJkgRClgt_4uVK4\\\",\\\"eventKey\\\":\\\"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http://passportapi.xyqb.com/wechat/receiveCode/xyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587958835\\\",\\\"EventKey\\\":\\\"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http://passportapi.xyqb.com/wechat/receiveCode/xyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos6LIChMOuJkgRClgt_4uVK4\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 11:40:35\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos6LIChMOuJkgRClgt_4uVK4\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://activity.xyqb.com/activity/5e60b5bef2fd61587d10e04b?show_share=1\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587958835,\\\"fromUser\\\":\\\"oTQGos6LIChMOuJkgRClgt_4uVK4\\\",\\\"eventKey\\\":\\\"https://activity.xyqb.com/activity/5e60b5bef2fd61587d10e04b?show_share=1\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587958835\\\",\\\"EventKey\\\":\\\"https://activity.xyqb.com/activity/5e60b5bef2fd61587d10e04b?show_share=1\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos6LIChMOuJkgRClgt_4uVK4\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 11:40:35\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos9aPwbj03rIXQhx-HMGtamE\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://h5.xyqb.com/weixin/home?registerFrom=198\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587959203,\\\"fromUser\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"eventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587959203\\\",\\\"EventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 11:46:43\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos9aPwbj03rIXQhx-HMGtamE\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://h5.xyqb.com/weixin/home?registerFrom=198\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587959495,\\\"fromUser\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"eventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587959495\\\",\\\"EventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 11:51:35\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos09Ah8nOL-xirx5gr91pH5w\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http%3A%2F%2Fpassportapi.xyqb.com%2Fwechat%2FreceiveCode%2Fxyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587961099,\\\"fromUser\\\":\\\"oTQGos09Ah8nOL-xirx5gr91pH5w\\\",\\\"eventKey\\\":\\\"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http%3A%2F%2Fpassportapi.xyqb.com%2Fwechat%2FreceiveCode%2Fxyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\\\",\\\"menuId\\\":450278966,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450278966\\\",\\\"CreateTime\\\":\\\"1587961099\\\",\\\"EventKey\\\":\\\"http://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0a7c0bce0c3ac523&redirect_uri=http%3A%2F%2Fpassportapi.xyqb.com%2Fwechat%2FreceiveCode%2Fxyqb&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos09Ah8nOL-xirx5gr91pH5w\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 12:18:19\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos09Ah8nOL-xirx5gr91pH5w\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://h5.xyqb.com/weixin/home?registerFrom=198\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587961099,\\\"fromUser\\\":\\\"oTQGos09Ah8nOL-xirx5gr91pH5w\\\",\\\"eventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"menuId\\\":450278966,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450278966\\\",\\\"CreateTime\\\":\\\"1587961099\\\",\\\"EventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos09Ah8nOL-xirx5gr91pH5w\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 12:18:19\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos9aPwbj03rIXQhx-HMGtamE\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://h5.xyqb.com/weixin/home?registerFrom=198\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587956059,\\\"fromUser\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"eventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587956059\\\",\\\"EventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 10:54:19\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos6LIChMOuJkgRClgt_4uVK4\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://h5.xyqb.com/weixin/home?registerFrom=198\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587958840,\\\"fromUser\\\":\\\"oTQGos6LIChMOuJkgRClgt_4uVK4\\\",\\\"eventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587958840\\\",\\\"EventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos6LIChMOuJkgRClgt_4uVK4\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 11:40:40\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos6LIChMOuJkgRClgt_4uVK4\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://h5.xyqb.com/weixin/home?registerFrom=198\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587958961,\\\"fromUser\\\":\\\"oTQGos6LIChMOuJkgRClgt_4uVK4\\\",\\\"eventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587958961\\\",\\\"EventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos6LIChMOuJkgRClgt_4uVK4\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 11:42:41\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos6LIChMOuJkgRClgt_4uVK4\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://h5.xyqb.com/weixin/home?registerFrom=198\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587959222,\\\"fromUser\\\":\\\"oTQGos6LIChMOuJkgRClgt_4uVK4\\\",\\\"eventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587959222\\\",\\\"EventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos6LIChMOuJkgRClgt_4uVK4\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 11:47:02\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos9aPwbj03rIXQhx-HMGtamE\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"TEMPLATESENDJOBFINISH\",\n",
" \"\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587959332,\\\"fromUser\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"msgId\\\":1314781114850148353,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"TEMPLATESENDJOBFINISH\\\",\\\"allFieldsMap\\\":{\\\"Status\\\":\\\"success\\\",\\\"CreateTime\\\":\\\"1587959332\\\",\\\"Event\\\":\\\"TEMPLATESENDJOBFINISH\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"MsgType\\\":\\\"event\\\",\\\"MsgID\\\":\\\"1314781114850148353\\\"},\\\"status\\\":\\\"success\\\"}\",\n",
" \"event\",\n",
" \"2020-04-27 11:48:52\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos9aPwbj03rIXQhx-HMGtamE\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://h5.xyqb.com/weixin/home?registerFrom=198\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587959332,\\\"fromUser\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"eventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587959332\\\",\\\"EventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 11:48:52\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos9aPwbj03rIXQhx-HMGtamE\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://h5.xyqb.com/weixin/home?registerFrom=198\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587959351,\\\"fromUser\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"eventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587959351\\\",\\\"EventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 11:49:11\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos9aPwbj03rIXQhx-HMGtamE\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://h5.xyqb.com/weixin/home?registerFrom=198\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587959471,\\\"fromUser\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"eventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587959471\\\",\\\"EventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 11:51:11\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos6LIChMOuJkgRClgt_4uVK4\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://h5.xyqb.com/weixin/home?registerFrom=198\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587959788,\\\"fromUser\\\":\\\"oTQGos6LIChMOuJkgRClgt_4uVK4\\\",\\\"eventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"menuId\\\":450291630,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"VIEW\\\",\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587959788\\\",\\\"EventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos6LIChMOuJkgRClgt_4uVK4\\\",\\\"MsgType\\\":\\\"event\\\"}}\",\n",
" \"event\",\n",
" \"2020-04-27 11:56:28\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos8wQ4zm7_Y6lyQi_0cC0Oos\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"TEMPLATESENDJOBFINISH\",\n",
" \"\",\n",
" \"{\\\"allFieldsMap\\\":{\\\"Status\\\":\\\"success\\\",\\\"CreateTime\\\":\\\"1587990425\\\",\\\"Event\\\":\\\"TEMPLATESENDJOBFINISH\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos8wQ4zm7_Y6lyQi_0cC0Oos\\\",\\\"MsgType\\\":\\\"event\\\",\\\"MsgID\\\":\\\"1315302765320617984\\\"},\\\"createTime\\\":1587990425,\\\"event\\\":\\\"TEMPLATESENDJOBFINISH\\\",\\\"fromUser\\\":\\\"oTQGos8wQ4zm7_Y6lyQi_0cC0Oos\\\",\\\"hardWare\\\":{},\\\"msgId\\\":1315302765320617984,\\\"msgType\\\":\\\"event\\\",\\\"scanCodeInfo\\\":{},\\\"sendLocationInfo\\\":{},\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"status\\\":\\\"success\\\",\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\"}\",\n",
" \"event\",\n",
" \"2020-04-27 20:27:05\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos8wQ4zm7_Y6lyQi_0cC0Oos\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"TEMPLATESENDJOBFINISH\",\n",
" \"\",\n",
" \"{\\\"allFieldsMap\\\":{\\\"Status\\\":\\\"success\\\",\\\"CreateTime\\\":\\\"1587990425\\\",\\\"Event\\\":\\\"TEMPLATESENDJOBFINISH\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos8wQ4zm7_Y6lyQi_0cC0Oos\\\",\\\"MsgType\\\":\\\"event\\\",\\\"MsgID\\\":\\\"1315302765320617984\\\"},\\\"createTime\\\":1587990425,\\\"event\\\":\\\"TEMPLATESENDJOBFINISH\\\",\\\"fromUser\\\":\\\"oTQGos8wQ4zm7_Y6lyQi_0cC0Oos\\\",\\\"hardWare\\\":{},\\\"msgId\\\":1315302765320617984,\\\"msgType\\\":\\\"event\\\",\\\"scanCodeInfo\\\":{},\\\"sendLocationInfo\\\":{},\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"status\\\":\\\"success\\\",\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\"}\",\n",
" \"event\",\n",
" \"2020-04-27 20:27:05\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos9aPwbj03rIXQhx-HMGtamE\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://h5.xyqb.com/weixin/home?registerFrom=198\",\n",
" \"{\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587986402\\\",\\\"EventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"MsgType\\\":\\\"event\\\"},\\\"createTime\\\":1587986402,\\\"event\\\":\\\"VIEW\\\",\\\"eventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"fromUser\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"hardWare\\\":{},\\\"menuId\\\":450291630,\\\"msgType\\\":\\\"event\\\",\\\"scanCodeInfo\\\":{},\\\"sendLocationInfo\\\":{},\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\"}\",\n",
" \"event\",\n",
" \"2020-04-27 19:20:02\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos9aPwbj03rIXQhx-HMGtamE\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://h5.xyqb.com/weixin/home?registerFrom=198\",\n",
" \"{\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1587986859\\\",\\\"EventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"MsgType\\\":\\\"event\\\"},\\\"createTime\\\":1587986859,\\\"event\\\":\\\"VIEW\\\",\\\"eventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"fromUser\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"hardWare\\\":{},\\\"menuId\\\":450291630,\\\"msgType\\\":\\\"event\\\",\\\"scanCodeInfo\\\":{},\\\"sendLocationInfo\\\":{},\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\"}\",\n",
" \"event\",\n",
" \"2020-04-27 19:27:39\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos8OucLTPXY3mt3NEIhLs9fo\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"TEMPLATESENDJOBFINISH\",\n",
" \"\",\n",
" \"{\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\",\\\"hardWare\\\":{},\\\"msgType\\\":\\\"event\\\",\\\"sendLocationInfo\\\":{},\\\"createTime\\\":1587977646,\\\"fromUser\\\":\\\"oTQGos8OucLTPXY3mt3NEIhLs9fo\\\",\\\"msgId\\\":1315088376105730050,\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"scanCodeInfo\\\":{},\\\"event\\\":\\\"TEMPLATESENDJOBFINISH\\\",\\\"allFieldsMap\\\":{\\\"Status\\\":\\\"success\\\",\\\"CreateTime\\\":\\\"1587977646\\\",\\\"Event\\\":\\\"TEMPLATESENDJOBFINISH\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos8OucLTPXY3mt3NEIhLs9fo\\\",\\\"MsgType\\\":\\\"event\\\",\\\"MsgID\\\":\\\"1315088376105730050\\\"},\\\"status\\\":\\\"success\\\"}\",\n",
" \"event\",\n",
" \"2020-04-27 16:54:06\",\n",
" \"202004\"\n",
" ],\n",
" [\n",
" \"oTQGos9aPwbj03rIXQhx-HMGtamE\",\n",
" \"gh_0aeb631bd3e0\",\n",
" \"VIEW\",\n",
" \"https://h5.xyqb.com/weixin/home?registerFrom=198\",\n",
" \"{\\\"allFieldsMap\\\":{\\\"MenuId\\\":\\\"450291630\\\",\\\"CreateTime\\\":\\\"1588039519\\\",\\\"EventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"Event\\\":\\\"VIEW\\\",\\\"ToUserName\\\":\\\"gh_0aeb631bd3e0\\\",\\\"FromUserName\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"MsgType\\\":\\\"event\\\"},\\\"createTime\\\":1588039519,\\\"event\\\":\\\"VIEW\\\",\\\"eventKey\\\":\\\"https://h5.xyqb.com/weixin/home?registerFrom=198\\\",\\\"fromUser\\\":\\\"oTQGos9aPwbj03rIXQhx-HMGtamE\\\",\\\"hardWare\\\":{},\\\"menuId\\\":450291630,\\\"msgType\\\":\\\"event\\\",\\\"scanCodeInfo\\\":{},\\\"sendLocationInfo\\\":{},\\\"sendPicsInfo\\\":{\\\"picList\\\":[]},\\\"toUser\\\":\\\"gh_0aeb631bd3e0\\\"}\",\n",
" \"event\",\n",
" \"2020-04-28 10:05:19\",\n",
" \"202004\"\n",
" ]\n",
" ]"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"df = pd.DataFrame(columns = ['from_open_id','to_open_id','event_type','event_key','origin_msg','msg_type','origin_created_time','mt' ],data=aa)"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"df.to_clipboard()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"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.6.0"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
import random
def test():
num = 9
prob_a = 0.6
prob_b = 0.3
prob_c = 0.1
As = int(num*prob_a) * 'A'
Bs = int(num*prob_b) * 'B'
Cs = int(num*prob_c) * 'C'
print('--',As,Bs,Cs)
# create a list with 60 As, 30 Bs, and 10 Cs
chars = list(As + Bs + Cs)
random.shuffle(chars)
print(chars,len(chars))
# _list = []
def lst_Covering(lst,num,istrue=True):
index = 0
while num>0:
if istrue:
lst[index] +=1
else:
print(num,index,lst[index])
lst[index] -=1
index+=1
num= num-1
if index >= len(lst):
index = 0
return lst
def test(b,count,res):
print(b,count)
res = []
if len(b)-1>count:
for i in b:
if count>=i:
res.append(round(i/count))
else:
res.append(1)
_sum = sum(res)
# print(res,_sum,count)
if _sum > count:
_temp = _sum - count
# print(_temp)
res = sorted(res,reverse = True)
res = lst_Covering(res,_temp,False)
elif _sum < count:
_temp = count - _sum
res = sorted(res)
res = lst_Covering(res,_temp)
return res
def test2(a,b):
lst = []
for i,v in enumerate(b):
temp = [a[i]] * int(v)
lst.extend(temp)
random.shuffle(lst)
return lst
a = [1,2,3,4]
b = [70,10,17,3]
count = 4
b = sorted(b,reverse=True)
res = []
res = test(b,count,res)
print(res)
if res:
print(test2(a,res),len(test2(a,res)) - count)
import random
def lst_Covering(lst,num,istrue=True):
index = 0
while num>0:
if istrue:
lst[index] +=1
else:
print(num,index,lst[index])
lst[index] -=1
index+=1
num= num-1
if index >= len(lst):
index = 0
return lst
def set_allocation_num(gdp,count):
"""分配"""
res = []
for i in gdp:
res.append(round(count*i/100))
_sum = sum(res)
if _sum > count:
_temp = _sum - count
res = sorted(res,reverse = True)
res = lst_Covering(res,_temp,False)
elif _sum < count:
_temp = count - _sum
res = sorted(res)
res = lst_Covering(res,_temp)
return res
def get_array(name,gdp):
lst = []
for i,v in enumerate(gdp):
temp = [name[i]] * int(v)
lst.extend(temp)
random.shuffle(lst)
return lst
feature_name = [1,2,3,4]
feature_gdp = [70,10,17,3]
model_count = 10
feature_gdp = sorted(feature_gdp,reverse=True)
gdp_num = set_allocation_num(feature_gdp,model_count)
# print(len(test2(feature_name,res)) - model_count)
print(get_array(feature_name,gdp_num))
\ No newline at end of file
def aaa(n):
def aa(n):
for i in range(n):
yield i*i
return aa(n)
# for i in aaa(5):
# print(i)
def getSeq(num):
index = 1;
while index<num:
index = index+1
getSeq(10)
# for i in getSeq(10):
# print(i)
\ No newline at end of file
import logging
from logging.handlers import RotatingFileHandler # 按文件大小滚动备份
import colorlog # 控制台日志输入颜色
import time
import datetime
import os
cur_path = os.path.dirname(os.path.realpath(__file__)) # log_path是存放日志的路径
log_path = os.path.join(os.path.dirname(cur_path), 'logs')
if not os.path.exists(log_path): os.mkdir(log_path) # 如果不存在这个logs文件夹,就自动创建一个
logName = os.path.join(log_path, '%s.log' % time.strftime('%Y-%m-%d')) # 文件的命名
print(cur_path)
print(log_path)
print(logName)
log_colors_config = {
'DEBUG': 'cyan',
'INFO': 'green',
'WARNING': 'yellow',
'ERROR': 'red',
'CRITICAL': 'red',
}
class Log:
def __init__(self, logName=logName):
self.logName = logName
self.logger = logging.getLogger()
self.logger.setLevel(logging.DEBUG)
self.formatter = colorlog.ColoredFormatter(
'%(log_color)s[%(asctime)s] [%(filename)s:%(lineno)d] [%(module)s:%(funcName)s] [%(levelname)s]- %(message)s',
log_colors=log_colors_config) # 日志输出格式
self.handle_logs()
def get_file_sorted(self, file_path):
"""最后修改时间顺序升序排列 os.path.getmtime()->获取文件最后修改时间"""
dir_list = os.listdir(file_path)
if not dir_list:
return
else:
dir_list = sorted(dir_list, key=lambda x: os.path.getmtime(os.path.join(file_path, x)))
return dir_list
def TimeStampToTime(self, timestamp):
"""格式化时间"""
timeStruct = time.localtime(timestamp)
return str(time.strftime('%Y-%m-%d', timeStruct))
def handle_logs(self):
"""处理日志过期天数和文件数量"""
dir_list = ['logs'] # 要删除文件的目录名
for dir in dir_list:
print(os.path.abspath(os.path.dirname(os.path.dirname(__file__))) + '/' + dir )
dirPath = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) + '/' + dir # 拼接删除目录完整路径
file_list = self.get_file_sorted(dirPath) # 返回按修改时间排序的文件list
if file_list: # 目录下没有日志文件
for i in file_list:
file_path = os.path.join(dirPath, i) # 拼接文件的完整路径
t_list = self.TimeStampToTime(os.path.getctime(file_path)).split('-')
now_list = self.TimeStampToTime(time.time()).split('-')
t = datetime.datetime(int(t_list[0]), int(t_list[1]),
int(t_list[2])) # 将时间转换成datetime.datetime 类型
now = datetime.datetime(int(now_list[0]), int(now_list[1]), int(now_list[2]))
if (now - t).days > 6: # 创建时间大于6天的文件删除
self.delete_logs(file_path)
print(file_path,t_list,now_list,now,t,(now - t).days)
if len(file_list) > 4: # 限制目录下记录文件数量
file_list = file_list[0:-4]
for i in file_list:
file_path = os.path.join(dirPath, i)
print(file_path)
self.delete_logs(file_path)
def delete_logs(self, file_path):
try:
os.remove(file_path)
except PermissionError as e:
Log().warning('删除日志文件失败:{}'.format(e))
def __console(self, level, message):
# 创建一个FileHandler,用于写到本地
fh = RotatingFileHandler(filename=self.logName, mode='a', maxBytes=1024 * 1024 * 5, backupCount=5,
encoding='utf-8') # 使用RotatingFileHandler类,滚动备份日志
fh.setLevel(logging.DEBUG)
fh.setFormatter(self.formatter)
self.logger.addHandler(fh)
# 创建一个StreamHandler,用于输出到控制台
ch = colorlog.StreamHandler()
ch.setLevel(logging.DEBUG)
ch.setFormatter(self.formatter)
self.logger.addHandler(ch)
if level == 'info':
self.logger.info(message)
elif level == 'debug':
self.logger.debug(message)
elif level == 'warning':
self.logger.warning(message)
elif level == 'error':
self.logger.error(message)
# 这两行代码是为了避免日志输出重复问题
self.logger.removeHandler(ch)
self.logger.removeHandler(fh)
fh.close() # 关闭打开的文件
def debug(self, message):
self.__console('debug', message)
def info(self, message):
self.__console('info', message)
def warning(self, message):
self.__console('warning', message)
def error(self, message):
self.__console('error', message)
if __name__ == "__main__":
log = Log()
log.debug("---测试开始----")
log.info("操作步骤")
log.warning("----测试结束----")
log.error("----测试错误----")
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment