...
|
...
|
@@ -133,6 +133,7 @@ class Order extends Model |
|
|
'goods_price' => $goods['goods_price'],
|
|
|
'goods_num' => $goods['goods_num'],
|
|
|
'user_size_id' => !empty($goods['user_size']) ? $goods['user_size']['id'] : 0,
|
|
|
'make_type' => $goods['make_type'],
|
|
|
'goods_style' => $goods['goods_style'],
|
|
|
'spec_sku_id' => $goods['goods_sku']['spec_sku_id'],
|
|
|
'goods_attr' => $goods['goods_sku']['goods_attr'],
|
...
|
...
|
@@ -196,7 +197,7 @@ class Order extends Model |
|
|
$filter['refund_status'] = '0';
|
|
|
break;
|
|
|
}
|
|
|
return $this->with('goods')
|
|
|
return $this->with(['goods'=>['user_size']])
|
|
|
->where('user_id', $user_id)
|
|
|
->where('order_status', '<>', '2')
|
|
|
->where($filter)
|
...
|
...
|
@@ -213,7 +214,7 @@ class Order extends Model |
|
|
'id' => $order_id,
|
|
|
'user_id' => $user_id,
|
|
|
'order_status' => ['<>', '2']
|
|
|
], ['goods' => ['goods','spec'], 'address'])) {
|
|
|
], ['goods' => ['goods','user_size','spec'], 'address'])) {
|
|
|
$this->setError('订单不存在');
|
|
|
return false;
|
|
|
}
|
...
|
...
|
|