|
@@ -29,6 +29,7 @@ class Returngoods extends Start_Controller {
|
|
|
$this->load->_model('Model_weight','weight');
|
|
|
$this->load->_model('Model_pay','pay');
|
|
|
$this->load->_model('Model_setting','setting');
|
|
|
+ $this->load->_model("Model_logic_order","logic_order");
|
|
|
|
|
|
}
|
|
|
//定义方法的调用规则 获取URI第二段值
|
|
@@ -184,12 +185,18 @@ class Returngoods extends Start_Controller {
|
|
|
}
|
|
|
}
|
|
|
$order_no= $arg_array[0];
|
|
|
+ $id = isset($arg_array[1])?$arg_array[1]:0;
|
|
|
+ if($id){
|
|
|
+ $order_info = $this->logic_order->getInfo("id = ".$id," and orderinfo = ".$order_no);
|
|
|
+ }else{
|
|
|
+ $order_info = $this->logic_order->getInfo("orderinfo = ".$order_no);
|
|
|
+ }
|
|
|
|
|
|
- $order_info = $this->_getOrderInfo($order_no);
|
|
|
+
|
|
|
|
|
|
- if(empty($order_info)){
|
|
|
- throw new Exception("订单不存在,请认真核对相关信息!!!");
|
|
|
- }
|
|
|
+ // if(empty($order_info)){
|
|
|
+ // throw new Exception("订单不存在,请认真核对相关信息!!!");
|
|
|
+ // }
|
|
|
|
|
|
// $info = $this->returngoods->find("orderinfo = ".$order_info['orderinfo']);
|
|
|
// if(!empty($info) &&($info['status']!=120)){
|