#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#
|
##@package
|
#
|
# @todo: ÇþµÀ·µÀû·¢·Å
|
#
|
# @author: Alee
|
# @date 2019-1-23 ÏÂÎç02:38:15
|
# @version 1.0
|
#
|
# @note:
|
#
|
#---------------------------------------------------------------------
|
#µ¼Èë
|
import PlayerControl
|
import GameWorld
|
import ChConfig
|
import datetime
|
import PlayerQuDaoDoubleBill
|
#---------------------------------------------------------------------
|
#È«¾Ö±äÁ¿
|
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
#Â߼ʵÏÖ
|
## ÇëÇóÂß¼
|
# @param query_Type ÇëÇóÀàÐÍ
|
# @param query_ID Íæ¼ÒID
|
# @param packCMDList ·¢°üÃüÁî
|
# @param tick µ±Ç°Ê±¼ä
|
# @return "True" or "False" or ""
|
# @remarks º¯ÊýÏêϸ˵Ã÷.
|
def DoLogic(query_Type, query_ID, packCMDList, tick):
|
return
|
curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(query_ID)
|
|
if not curPlayer or curPlayer.IsEmpty():
|
GameWorld.Log("ÇþµÀ·µÀûÎÞ·¨ÕÒµ½Íæ¼Ò:%s"%query_ID)
|
return
|
|
gold = packCMDList[0]
|
|
curGold = curPlayer.NomalDictGetProperty(ChConfig.Def_QuDao_DoubleBillGold)
|
if curGold != 0:
|
# ÒѼǼµÄ²»ÄÜÔÙ¸ü¸Ä
|
return
|
|
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_QuDao_DoubleBillGold, gold)
|
if gold <= 2:
|
return
|
|
#µÚÒ»Ìì·µÀû
|
# ¼Ç¼·µÀû´ÎÊý£º ʱ¼ä+´ÎÊý
|
curDay = datetime.datetime.today()
|
count = curDay.year*100000 + curDay.month*1000 + curDay.day*10 + 0
|
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_QuDao_DoubleBillCount, count)
|
|
GameWorld.Log("ÇþµÀ·µÀû·¢·Å %s״̬%s-%s"%(curPlayer.GetAccID(), count, gold))
|
PlayerQuDaoDoubleBill.CalcDoubleBillByDay(curPlayer)
|
return
|
|
#---------------------------------------------------------------------
|
#Ö´Ðнá¹û
|
## Ö´Ðнá¹û
|
# @param curPlayer ·¢³öÇëÇóµÄÍæ¼Ò
|
# @param callFunName ¹¦ÄÜÃû³Æ
|
# @param funResult ²éѯµÄ½á¹û
|
# @param tick µ±Ç°Ê±¼ä
|
# @return None
|
# @remarks º¯ÊýÏêϸ˵Ã÷.
|
def DoResult(curPlayer, callFunName, funResult, tick):
|
return
|
|
|
|
|
|
|
|
|
|