|
|
@@ -33,7 +33,7 @@ class ShopOrderLogic extends BaseLogic
|
|
|
{
|
|
|
$detail = ShopOrders::with(['orderGoods'=>function(Query $query){
|
|
|
$query->field(['sn','goods_name','goods_image','number','service_fee','company_name','delivery_type','shop_goods_type','goods_specs_inventory_id','specs_type','custom_attribute_items','specs'])->append(['spec_arr','delivery_type_text','shop_goods_type_text']);
|
|
|
- }])->field('id, sn, real_name,mobile, address,pay_time, paw_way,pay_sn, pay_status, refund_status, refund_transaction_id,create_time,shop_order_type,amount_total, amount')
|
|
|
+ }])->field('id, sn, real_name,mobile, address,pay_time, paw_way,pay_sn, pay_status, refund_status, refund_transaction_id,create_time,shop_order_type,amount_total, order_amount')
|
|
|
->append(['pay_way_text','pay_status_text','refund_status_text'])->where(['sn'=> $params['sn'],'worker_id'=>$params['worker_id']])->findOrEmpty()->toArray();
|
|
|
$orderGoodsArr = [];
|
|
|
$companyNameArr = array_column($detail['orderGoods'],'company_name');
|