|
@@ -27,7 +27,6 @@ require_once(BASE_HELPER_PATH . '/room/tpl_chatwo_home.php');
|
|
require_once(BASE_HELPER_PATH . '/mcard/mcard.php');
|
|
require_once(BASE_HELPER_PATH . '/mcard/mcard.php');
|
|
require_once(BASE_HELPER_PATH . '/mtopcard/mtopcard.php');
|
|
require_once(BASE_HELPER_PATH . '/mtopcard/mtopcard.php');
|
|
|
|
|
|
-
|
|
|
|
class indexControl extends specialControl
|
|
class indexControl extends specialControl
|
|
{
|
|
{
|
|
const HomeSpecialID = 0;
|
|
const HomeSpecialID = 0;
|
|
@@ -54,7 +53,7 @@ class indexControl extends specialControl
|
|
}
|
|
}
|
|
|
|
|
|
$daliy_bonus = activity_bonus::daliy_bonus_url();
|
|
$daliy_bonus = activity_bonus::daliy_bonus_url();
|
|
- return self::outsuccess(array('tabs' => $tabs,'daliy_bonus' =>$daliy_bonus));
|
|
|
|
|
|
+ return self::outsuccess(['tabs' => $tabs,'daliy_bonus' =>$daliy_bonus]);
|
|
}
|
|
}
|
|
|
|
|
|
public function splashOp()
|
|
public function splashOp()
|
|
@@ -71,7 +70,7 @@ class indexControl extends specialControl
|
|
|
|
|
|
$image = $block['items'][0]['image'];
|
|
$image = $block['items'][0]['image'];
|
|
if(empty($sig) || $sig != md5($image)) {
|
|
if(empty($sig) || $sig != md5($image)) {
|
|
- return self::outsuccess(array('sig' => md5($image),'url' => $image));
|
|
|
|
|
|
+ return self::outsuccess(['sig' => md5($image),'url' => $image]);
|
|
} else {
|
|
} else {
|
|
return self::outsuccess(null);
|
|
return self::outsuccess(null);
|
|
}
|
|
}
|
|
@@ -160,6 +159,7 @@ class indexControl extends specialControl
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ ///获取充值卡的数据接口.
|
|
public function card_goodsOp()
|
|
public function card_goodsOp()
|
|
{
|
|
{
|
|
global $config;
|
|
global $config;
|
|
@@ -235,6 +235,7 @@ class indexControl extends specialControl
|
|
$item['goods_price'] = $summary['goods_price'];
|
|
$item['goods_price'] = $summary['goods_price'];
|
|
$ret[] = $item;
|
|
$ret[] = $item;
|
|
}
|
|
}
|
|
|
|
+ usort($ret,[__CLASS__,'comp_goods']);
|
|
|
|
|
|
return $ret;
|
|
return $ret;
|
|
}
|
|
}
|
|
@@ -242,4 +243,20 @@ class indexControl extends specialControl
|
|
return [];
|
|
return [];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ public static function comp_goods($left,$right)
|
|
|
|
+ {
|
|
|
|
+ $t_l = intval($left['goods_spec']);
|
|
|
|
+ $t_r = intval($right['goods_spec']);
|
|
|
|
+
|
|
|
|
+ if($t_l > $t_r) {
|
|
|
|
+ return 1;
|
|
|
|
+ }
|
|
|
|
+ elseif($t_l == $t_r)
|
|
|
|
+ {
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ return -1;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|