Esempio n. 1
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pickle
import datetime
from bson import ObjectId
import DB
from redis import Redis
redis = Redis(db=13)
ACCESS_TOKEN = redis.get('__WUKONG_CLIENT_ACCESS_TOKEN__')
WUKONG_DB_NAME = 'wukong-release'
SHARK_DB_NAME = 'shark-release'
#MOBILE = "18814811677"

client = DB.getKKYClient()
WUKONG_DB = client[WUKONG_DB_NAME]
SHARK_DB = client[SHARK_DB_NAME]

courier_cls = WUKONG_DB['courier']
task_cls = WUKONG_DB['task']
subtask_cls = WUKONG_DB['subtask']
order_cls = SHARK_DB["order"]
bill_cls = WUKONG_DB['bill']
school_cls = WUKONG_DB['schools']

REFUND = [
    '551388af778d17053f1f6ce4',
    '55138968778d17053f1f6cf9',
    '55138a1f778d17053f1f6d14',
    '55140c59778d17053f1f7fd5',
    '55141211778d17053f1f8327',
    '55169415778d174819c08172',