1
This commit is contained in:
parent
44ccdc20a0
commit
9425c26c37
@ -81,8 +81,20 @@ class Item(object):
|
|||||||
['try_expire_at', 0, '试用到期时间(utc时间)'],
|
['try_expire_at', 0, '试用到期时间(utc时间)'],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
class AwardItem(object):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
self.fields = [
|
||||||
|
['type', 0, '奖励类型 1:道具 2:英雄 3:英雄皮肤 4:枪械皮肤'],
|
||||||
|
['union_1', Item(), '道具'],
|
||||||
|
['union_2', Hero(), '英雄'],
|
||||||
|
['union_3', HeroSkin(), '英雄皮肤'],
|
||||||
|
['union_4', GunSkin(), '枪械皮肤'],
|
||||||
|
]
|
||||||
|
|
||||||
class Award(object):
|
class Award(object):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.fields = [
|
self.fields = [
|
||||||
|
['!item_list', [AwardItem()], '奖励物品列表']
|
||||||
]
|
]
|
||||||
|
32
webapp/models/DynData.php
Normal file
32
webapp/models/DynData.php
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace models;
|
||||||
|
|
||||||
|
use mt;
|
||||||
|
use phpcommon\SqlHelper;
|
||||||
|
|
||||||
|
class DynData extends BaseModel {
|
||||||
|
|
||||||
|
public static function getV($x, $y, $defVal = 0)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function setV($x, $y, $defVal)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function incV($x, $y, $val)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function decV($x, $y, $val)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private static $dynData = null;
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user