DatumIntro.php 309 B

123456789101112
  1. <?php
  2. namespace app\common\model;
  3. use think\Model;
  4. // 资料
  5. class DatumIntro extends Model
  6. {
  7. public function urlArr()
  8. {
  9. return $this->hasMany('DatumUrl','datum_id')->field('id,datum_id,title,url,sort,is_vip,transmit_num,down_num,read_num')->where('is_deleted',0)->order('sort desc');
  10. }
  11. }