Commit 701b3ac8 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/explore' into 'master'

fix See merge request !197
parents 85d3ad9a afec9469
...@@ -32,11 +32,24 @@ class ExploreApp extends BaseActiveRecord ...@@ -32,11 +32,24 @@ class ExploreApp extends BaseActiveRecord
return [ return [
[['name', 'icon', 'app_url', 'slogan', 'type', 'sort', 'status', 'platform_id', 'app_category_id'], 'required'], [['name', 'icon', 'app_url', 'slogan', 'type', 'sort', 'status', 'platform_id', 'app_category_id'], 'required'],
[['type', 'sort', 'status', 'platform_id', 'app_category_id'], 'integer'], [['type', 'sort', 'status', 'platform_id', 'app_category_id'], 'integer'],
['slogan', 'string', 'max'=> 50], ['slogan', 'string', 'max' => 50],
[['icon'], 'url'] [['icon'], 'url']
]; ];
} }
public function attributeLabels()
{
return [
'name' => '应用名称',
'icon' => '应用图标',
'app_url' => 'H5链接',
'slogan' => '应用宣传语',
'type' => '应用类型',
'sort' => '应用排序',
'status' => '应用状态'
];
}
public function scenarios() public function scenarios()
{ {
$scenarios = [ $scenarios = [
......
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