审查视图

application/api/model/RiderOrder.php 395 字节
李忠强 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?php


namespace app\api\model;


use think\Model;

class RiderOrder extends Model
{
    protected $createTime = 'createtime';
    protected $updateTime = '';

    public function address()
    {
        return $this->belongsTo('OrderAddress','address_id','id')->setEagerlyType(0);
    }

    public function orderdetail()
    {
        return $this->belongsTo('Order','order_id','id');
    }
}