Commit 654405f7 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/explore' into 'master'

fix See merge request !199
parents fe9d9836 ccee5581
......@@ -5,6 +5,7 @@
* Date: 2018/12/18
* Time: 16:56
*/
namespace common\models\psources;
use common\core\BaseActiveRecord;
......@@ -30,8 +31,9 @@ class CoinBannerItem extends BaseActiveRecord
{
return [
[['image_url', 'platform_id'], 'required'],
['banner_url', 'default', 'value' => '#'],
[['banner_url', 'title'], 'safe'],
[['banner_url', 'image_url'], 'url']
[['image_url'], 'url']
];
}
......@@ -57,6 +59,6 @@ class CoinBannerItem extends BaseActiveRecord
public function getPlatform()
{
return $this->hasOne(CoinPlatform::className(), ['id'=>'platform_id']);
return $this->hasOne(CoinPlatform::className(), ['id' => 'platform_id']);
}
}
\ No newline at end of file
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