|
@@ -58,7 +58,7 @@ class bonusexControl extends mobileControl
|
|
|
return self::outerr(errcode::ErrBonus,"无此红包.");
|
|
|
}
|
|
|
$this->fileter_typeinfos($type_infos,$type_info,$binded_info);
|
|
|
- $type = \bonus\type::crate_by_paramer($type_infos['type_info']);
|
|
|
+ $type = \bonus\type::create_by_paramer($type_infos['type_info']);
|
|
|
|
|
|
$isMineType = $this->isMineType($type);
|
|
|
if($type->isStart() == false) {
|
|
@@ -128,7 +128,7 @@ class bonusexControl extends mobileControl
|
|
|
}
|
|
|
$this->fileter_typeinfos($type_infos,$type_info,$binded_info);
|
|
|
|
|
|
- $type = \bonus\type::crate_by_paramer($type_infos['type_info']);
|
|
|
+ $type = \bonus\type::create_by_paramer($type_infos['type_info']);
|
|
|
if($type->isStart() == false) {
|
|
|
return self::outsuccess(array('type_info' => $type_info),"bonus/unstart");
|
|
|
}
|
|
@@ -154,7 +154,7 @@ class bonusexControl extends mobileControl
|
|
|
}
|
|
|
$this->fileter_typeinfos($type_infos,$type_info,$binded_info);
|
|
|
|
|
|
- $type = \bonus\type::crate_by_paramer($type_infos['type_info']);
|
|
|
+ $type = \bonus\type::create_by_paramer($type_infos['type_info']);
|
|
|
if($type->isStart() == false) {
|
|
|
return self::outsuccess(array('type_info' => $type_info),"bonus/unstart");
|
|
|
}
|
|
@@ -245,7 +245,7 @@ class bonusexControl extends mobileControl
|
|
|
|
|
|
$type_sn = $bonus_obj->type_sn();
|
|
|
$type_infos = bonus_helper::get_typeinfo($type_sn);
|
|
|
- $type = \bonus\type::crate_by_paramer($type_infos['type_info']);
|
|
|
+ $type = \bonus\type::create_by_paramer($type_infos['type_info']);
|
|
|
if($type->isEnd()) {
|
|
|
return self::outsuccess(array('type_info' => $type_infos['type_info']),"bonus/end");
|
|
|
}
|
|
@@ -314,7 +314,7 @@ class bonusexControl extends mobileControl
|
|
|
{
|
|
|
$type_sn = $bonus_obj->type_sn();
|
|
|
$type_infos = bonus_helper::get_typeinfo($type_sn);
|
|
|
- $type = \bonus\type::crate_by_paramer($type_infos['type_info']);
|
|
|
+ $type = \bonus\type::create_by_paramer($type_infos['type_info']);
|
|
|
if($type->isEnd()) {
|
|
|
return self::outsuccess(errcode::ErrBonus,"该红包已经过期,不能再摇啦~");
|
|
|
}
|
|
@@ -373,7 +373,7 @@ class bonusexControl extends mobileControl
|
|
|
function bonus_output_unstart($output)
|
|
|
{
|
|
|
$type_info = $output['type_info'];
|
|
|
- $type = \bonus\type::crate_by_paramer($type_info);
|
|
|
+ $type = \bonus\type::create_by_paramer($type_info);
|
|
|
|
|
|
$local_tm = time();
|
|
|
$start_tm = $type->get_start_time();
|
|
@@ -388,7 +388,7 @@ function bonus_output_unstart($output)
|
|
|
function bonus_output_end($output)
|
|
|
{
|
|
|
$type_info = $output['type_info'];
|
|
|
- $type = \bonus\type::crate_by_paramer($type_info);
|
|
|
+ $type = \bonus\type::create_by_paramer($type_info);
|
|
|
$start_tm = $type->get_start_time();
|
|
|
$end_time = $type->get_end_time();
|
|
|
|
|
@@ -403,7 +403,7 @@ function bonus_output_end($output)
|
|
|
function bonus_output_grabinfo($output)
|
|
|
{
|
|
|
$type_info = $output['type_info'];
|
|
|
- $type = \bonus\type::crate_by_paramer($type_info);
|
|
|
+ $type = \bonus\type::create_by_paramer($type_info);
|
|
|
|
|
|
if($type->binded_over()) {
|
|
|
echo("<p>手慢了,红包被领完了</p>");
|
|
@@ -431,7 +431,7 @@ function bonus_output_sender($output)
|
|
|
{
|
|
|
$type_info = $output['type_info'];
|
|
|
if(!empty($type_info)) {
|
|
|
- $type = \bonus\type::crate_by_paramer($type_info);
|
|
|
+ $type = \bonus\type::create_by_paramer($type_info);
|
|
|
echo($type->sender_name());
|
|
|
} else {
|
|
|
echo("");
|
|
@@ -441,7 +441,7 @@ function bonus_output_sender($output)
|
|
|
function bonus_output_openurl($output)
|
|
|
{
|
|
|
$type_info = $output['type_info'];
|
|
|
- $type = \bonus\type::crate_by_paramer($type_info);
|
|
|
+ $type = \bonus\type::create_by_paramer($type_info);
|
|
|
$type_sn = $type->getType_sn();
|
|
|
|
|
|
$url = BASE_SITE_URL . "/mobile/index.php?act=bonusex&op=open&type_sn={$type_sn}";
|
|
@@ -451,7 +451,7 @@ function bonus_output_openurl($output)
|
|
|
function bonus_output_detailurl($output)
|
|
|
{
|
|
|
$type_info = $output['type_info'];
|
|
|
- $type = \bonus\type::crate_by_paramer($type_info);
|
|
|
+ $type = \bonus\type::create_by_paramer($type_info);
|
|
|
$type_sn = $type->getType_sn();
|
|
|
|
|
|
$url = BASE_SITE_URL . "/mobile/index.php?act=bonusex&op=detail&type_sn={$type_sn}&client_type=wap";
|
|
@@ -461,7 +461,7 @@ function bonus_output_detailurl($output)
|
|
|
function bonus_output_graburl($output)
|
|
|
{
|
|
|
$type_info = $output['type_info'];
|
|
|
- $type = \bonus\type::crate_by_paramer($type_info);
|
|
|
+ $type = \bonus\type::create_by_paramer($type_info);
|
|
|
$type_sn = $type->getType_sn();
|
|
|
$url = BASE_SITE_URL . "/mobile/index.php?act=bonusex&op=grab&client_type=wap&type_sn={$type_sn}";
|
|
|
return $url;
|
|
@@ -471,7 +471,7 @@ function bonus_output_type($output)
|
|
|
{
|
|
|
echo '<p class="p p_name" style="color:#454545">';
|
|
|
$type_info = $output['type_info'];
|
|
|
- $type = \bonus\type::crate_by_paramer($type_info);
|
|
|
+ $type = \bonus\type::create_by_paramer($type_info);
|
|
|
echo($type_info['sender_name'] . "的红包");
|
|
|
if($type->isRandomAmount()) {
|
|
|
echo '<s class="icon_pin"></s>';
|
|
@@ -564,7 +564,7 @@ function bonus_out_bindedtime($period)
|
|
|
function bonus_output_bindedinfo($output)
|
|
|
{
|
|
|
$type_info = $output['type_info'];
|
|
|
- $type = \bonus\type::crate_by_paramer($type_info);
|
|
|
+ $type = \bonus\type::create_by_paramer($type_info);
|
|
|
|
|
|
echo('<div class="prompt text_left">');
|
|
|
|