作者 王智

修复生成订单号 失败

... ... @@ -54,7 +54,7 @@ class Order extends Backend
list($where, $sort, $order, $offset, $limit) = $this->buildparams();
$list = $this->model
->with(['stor','user','batterycode'])
->with(['stor','user'])
->where($where)
->order($sort, $order)
->paginate($limit);
... ...
... ... @@ -95,5 +95,8 @@ class Order extends Model
}
// public function batterycode()
// {
// return $this->belongsTo('BatteryCode', 'battery_id', 'id', [], 'LEFT')->setEagerlyType(0);
// }
}
... ...