...
|
...
|
@@ -89,11 +89,20 @@ class SalesmanorderController extends AdminBaseController{ |
|
|
$address_region = $data['region'].$data['school'].$data['grade'].$data['class'];
|
|
|
}
|
|
|
//判断订单是统一配送还是快递配送
|
|
|
// if($data['is_courier'] == 1){
|
|
|
//
|
|
|
// }else{
|
|
|
//
|
|
|
// }
|
|
|
if($data['is_courier'] == 1){
|
|
|
$logistics = $data['start_time'];
|
|
|
$this -> assign('logistics',$logistics);
|
|
|
}else{
|
|
|
$bird = new BirdController();
|
|
|
$logistics = $bird -> getOrder($id['id']);
|
|
|
if($logistics['code'] == 40000){
|
|
|
$this -> assign('logistics',4);
|
|
|
}else{
|
|
|
$this -> assign('logistics',$logistics['data']['traces']);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
$data_content = Db::name('indent_goods') -> where('indent_id',$id['id']) -> select();
|
|
|
$this -> assign('data',$data);
|
|
|
$this -> assign('address_region',$address_region);
|
...
|
...
|
|