Commit feddb364 authored by ZhuChunYang's avatar ZhuChunYang

update

parent 7207d7aa
......@@ -173,7 +173,7 @@ class ApplicationBusiness
public static function getH5CategoryAppList($limit=0)
{
$data = CoinApplicationCategory::getAllList();
$data = CoinApplicationCategory::getAllList(['enable' => 1]);
$cate_app_data = [];
$icon_Items = array_column($data,'icon');
$icon_Infos = CoinImage::getItemsByIds($icon_Items);
......@@ -226,6 +226,7 @@ class ApplicationBusiness
foreach ($condition as $item) {
$query = $query->andWhere($item);
}
$query = $query->andWhere(['enable' => 1]);
$data = $query->asArray()->all();
$icon_Items = array_column($data,'h5_icon');
$introduce_image_Items = array_column($data,'introduce_image');
......
......@@ -56,6 +56,7 @@ class CoinApplicateRank extends BaseActiveRecord
$applicate_rank_model = self::find();
$data = $applicate_rank_model->JoinWith(['application'], false)
->select('relate_id as app_id,sort,name,h5_icon,introduce_image,show_width,show_height,advertise,native_url,native_login_url,h5_url,android_url,ios_url,app_store_url,redirect_type,open_type,'.CoinApplication::tableName().".type,".CoinApplicateRank::tableName().".type as rank_type")
->where(['enable' => 1])
->orderBy(self::tableName().'.sort asc')->asArray()->all();
return $data;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment