12345678910111213 |
- <?php
- namespace app\common\model;
- use think\Model;
- // 资料
- class DatumIntro extends Model
- {
- public function urlArr()
- {
- 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')
- ->where('release_time','< time',date("Y-m-d H:i:s"))->where('is_deleted',0)->where('status',1);
- }
- }
|