Commit 877912b5 authored by ZhuChunYang's avatar ZhuChunYang

update

parent d77c31d9
......@@ -166,6 +166,7 @@ class ApplicationBusiness
$data = $app_cate_Model->JoinWith(['category'], false)
->select('cate_id,app_id,name')
->where(['in','app_id',$appIds])
->andWhere(['enable' => 1])
->orderBy(CoinApplicationCategory::tableName().'.sort asc')->asArray()->all();
return $data;
}
......
......@@ -152,7 +152,7 @@ class CoinApplication extends BaseActiveRecord
public static function getAppItemsByName($name)
{
return array_column(self::find()->select('id as app_id,name,icon,advertise,native_url,native_login_url,h5_url,android_url,ios_url,app_store_url,redirect_type,type')
->where(['like','name',$name,'enable' => 1])->asArray()->all(),null,'app_id');
->where(['and',['like','name',$name,],['enable' => 1]])->asArray()->all(),null,'app_id');
}
public static function getH5ApplicateById($id)
......
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