示例#1
0
def set_tao_client(article_code):
    if article_code == 'ts-1796606':
        set_taobao_client('12685542', '6599a8ba3455d0b2a043ecab96dfa6f9')
    elif article_code == 'ts-1797607':
        set_taobao_client('21065688', '74aecdce10af604343e942a324641891')
    else:
        print 'article_code error: ' + article_code
示例#2
0
def set_tao_client(article_code):
    if article_code == 'ts-1796606':
        set_taobao_client('12685542', '6599a8ba3455d0b2a043ecab96dfa6f9')
    elif article_code == 'ts-1797607':
        set_taobao_client('21065688', '74aecdce10af604343e942a324641891')
    else:
        print 'article_code error: '+article_code
@contact: [email protected]
@date: 2013-02-26 18:17
@version: 0.0.0
@license: Copyright alibaba-inc.com
@copyright: Copyright alibaba-inc.com

"""
import sys
if __name__ == '__main__':
    sys.path.append('../../')

from DataMonitor.conf.settings import CACHE_DIR, MARKET_CHECK_SETTING

from tao_models.conf import set_env as tao_models_set_env
from tao_models.conf.settings import set_taobao_client
set_taobao_client('21065688', '74aecdce10af604343e942a324641891')
tao_models_set_env.getEnvReady()

from tao_models.simba_account_balance_get import SimbaAccountBalanceGet


def get_record_money():
    file_date = file(CACHE_DIR + 'money').read().split('\n')
    return float(file_date[0]) if file_date[0] else 0


def write_record_money(money):
    file_obj = file(CACHE_DIR + 'money', 'w')
    file_obj.write(str(money) + '\n')
    file_obj.close()
示例#4
0
@contact: [email protected]
@date: 2013-02-26 18:17
@version: 0.0.0
@license: Copyright alibaba-inc.com
@copyright: Copyright alibaba-inc.com

"""
import sys
if __name__ == '__main__':
    sys.path.append('../../')

from DataMonitor.conf.settings import CACHE_DIR, MARKET_CHECK_SETTING

from tao_models.conf import set_env as tao_models_set_env
from tao_models.conf.settings import set_taobao_client
set_taobao_client('21065688', '74aecdce10af604343e942a324641891')
tao_models_set_env.getEnvReady()

from tao_models.simba_account_balance_get import SimbaAccountBalanceGet

def get_record_money():
    file_date = file(CACHE_DIR+'money').read().split('\n')
    return float(file_date[0]) if file_date[0] else 0

def write_record_money(money):
    file_obj = file(CACHE_DIR+'money', 'w')
    file_obj.write(str(money)+'\n')
    file_obj.close()

def get_current_money():
    access_token = '61018247b953db26c94a563642f900eb1283a1b09bc079b1101933802'
示例#5
0
 def __init__(self, date):
     self.soft_code = 1
     CollectReport.__init__(self, date)
     set_taobao_client('21065688', '74aecdce10af604343e942a324641891')
示例#6
0
 def __init__(self, date):
     self.soft_code = 2
     CollectReport.__init__(self, date)
     set_taobao_client('12685542', '6599a8ba3455d0b2a043ecab96dfa6f9')
@license: Copyright maimiaotech.com
@copyright: Copyright maimiaotech.com

"""
import os
import sys
import time
if __name__ == '__main__':
    sys.path.append('/home/zhoujiebing/Analysis/')

import datetime
from CommonTools.logger import logger
from CommonTools.send_tools import send_sms
from DataAnalysis.conf.settings import CURRENT_DIR
from tao_models.conf.settings import set_taobao_client
set_taobao_client('12685542', '6599a8ba3455d0b2a043ecab96dfa6f9')
from tao_models.vas_order_search import VasOrderSearch

class UserOrder:

    def __init__(self, article_code):
        self.article_code = article_code
        self.code_name = {'ts-1796606':'省油宝', 'ts-1797607':'选词王', 'ts-1817244':'淘词'}
        
        self.order_type = {1:'新订', 2:'续订', 3:'升级', 4:'后台赠送', 5:'后台自动续订'}
        self.support_type = {7:'7天初访', 14:'2周回访', 30:'1月回访', 90:'3月回访', \
                180:'半年回访',270:'9月回访',-3:'3天到期续签'}
        self.time_type = {u'1个月':[7,14,-3],\
                u'3个月':[7,30,-3],\
                u'6个月':[7,30,90,-3],\
                u'12个月':[7,30,180,270,-3]}
示例#8
0
 def __init__(self, date):
     self.soft_code = 1
     CollectReport.__init__(self, date)
     set_taobao_client('21065688', '74aecdce10af604343e942a324641891')
示例#9
0
 def __init__(self, date):
     self.soft_code = 2
     CollectReport.__init__(self, date)
     set_taobao_client('12685542', '6599a8ba3455d0b2a043ecab96dfa6f9')