WebRegionConfig.php 612 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace App\Game;
  3. use Illuminate\Database\Eloquent\Model;
  4. class WebRegionConfig extends Model
  5. {
  6. protected $table = 'webgame.WebRegionConfig';
  7. protected $primaryKey = 'id';
  8. public $timestamps = false;
  9. protected $connection = 'mysql';
  10. protected $fillable = [
  11. 'RegionID', 'DomainUrl', 'LogoUrl', 'IconUrl', 'BindChannels', 'GroupID', 'GameDesc','SuggestChannel', 'ThemeKey' ,'AllChannelUnique'
  12. ];
  13. protected $casts = [
  14. 'BindChannels' => 'json',
  15. ];
  16. public function isAllChannelsUnique()
  17. {
  18. return intval($this->AllChannelUnique)==1;
  19. }
  20. }