zhangxiaoli 5 years ago
parent b03413afb1
commit 9ef772a20c
  1. 26
      frontend/controllers/InsurerController.php

@ -187,17 +187,17 @@ class InsurerController extends BaseController
// dd($order_info->non_id); // dd($order_info->non_id);
//快递 //快递
// dd($car_info->id); // dd($car_info->id);
$ems_items = EmsT::find() // $ems_items = EmsT::find()
->where(['car_id'=>$car_info->id,'order_id'=>$order_info->id]) // ->where(['car_id'=>$car_info->id,'order_id'=>$order_info->id])
->orderBy('id ASC') // ->orderBy('id ASC')
->all(); // ->all();
$ems_items1=(object)array(); // $ems_items1=(object)array();
if(!$ems_items){ // if(!$ems_items){
$ems_items1 = ExpressT::find() // $ems_items1 = ExpressT::find()
->where(['car_id'=>$car_info->id,'order_id'=>$order_info->id]) // ->where(['car_id'=>$car_info->id,'order_id'=>$order_info->id])
->orderBy('id ASC') // ->orderBy('id ASC')
->all(); // ->all();
} // }
//礼品 //礼品
$gift_free_group_items = GiftGroupT::find() $gift_free_group_items = GiftGroupT::find()
->where('is_free=1') ->where('is_free=1')
@ -230,8 +230,8 @@ class InsurerController extends BaseController
return $this->render('info',[ return $this->render('info',[
'order_info'=>$order_info, 'order_info'=>$order_info,
'car_info'=>$car_info, 'car_info'=>$car_info,
'ems_items' => $ems_items, // 'ems_items' => $ems_items,
'ems_items1' => $ems_items1, // 'ems_items1' => $ems_items1,
'money_man' => $money_man, 'money_man' => $money_man,
'money_no' => $money_no, 'money_no' => $money_no,
'money_bank' => $money_bank, 'money_bank' => $money_bank,

Loading…
Cancel
Save