belongsTo('app\\common\\model\\user\\User', 'user_id', 'user_id'); } /** * 获取订单详情 */ public static function detail($where) { $model = (new static())->where($where)->find(); return $model; } }