DatumIntro.php 438 B

12345678910111213
  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,release_time,datum_id,user_id,title,url,is_encrypt,pdf_clear,sort,is_vip,transmit_num,down_num,read_num,is_down,comment_switch')
  10. ->where('release_time','< time',date("Y-m-d H:i:s"))->where('is_deleted',0)->where('status',1);
  11. }
  12. }