|
@@ -425,10 +425,10 @@ class type
|
|
|
return new type($paramer,self::load_type);
|
|
|
}
|
|
|
|
|
|
- static public function create_by_sn($type_sn)
|
|
|
+ static public function create_by_sn($type_sn,$master = false)
|
|
|
{
|
|
|
$bonus_type = Model('bonus_type');
|
|
|
- $type_info = $bonus_type->get_one(array('type_sn' => $type_sn));
|
|
|
+ $type_info = $bonus_type->get_one(array('type_sn' => $type_sn),'*',$master);
|
|
|
if(empty($type_info)) {
|
|
|
throw new Exception("错误的红包序列号.",errcode::ErrBonusType);
|
|
|
}
|