longyi 6 月之前
父节点
当前提交
c3b7b4a5f5
共有 1 个文件被更改,包括 10 次插入11 次删除
  1. 10 11
      core/CoreApp/controllers/Returngoods.php

+ 10 - 11
core/CoreApp/controllers/Returngoods.php

@@ -192,19 +192,18 @@ class Returngoods extends Start_Controller {
         }
         
         $info = $this->returngoods->find("orderinfo = ".$order_info['orderinfo']);
-        if(!empty($info)){
-            if($info['status']!=120){
-                return $this->_see([$info['id']]);
-            }
-            
+        if(!empty($info) &&($info['status']!=120)){
+            $this->_see([$info['id']]);
+        }else{
+            $this->data['order_info'] = $order_info;
+            $this->data['status_list'] = $this->returngoods->getStatus(); 
+            $this->data['cate_one_list'] = $this->returngoods->getCateOne();    
+            $this->data['cate_two_list'] = json_encode($this->returngoods->getCateTwo());
+            $this->data['shop_info'] = $this->shop->read($order_info['shop']);
+    		$this->_Template('returngoods_add',$this->data);
         }
         
-        $this->data['order_info'] = $order_info;
-        $this->data['status_list'] = $this->returngoods->getStatus(); 
-        $this->data['cate_one_list'] = $this->returngoods->getCateOne();    
-        $this->data['cate_two_list'] = json_encode($this->returngoods->getCateTwo());
-        $this->data['shop_info'] = $this->shop->read($order_info['shop']);
-		$this->_Template('returngoods_add',$this->data);
+       
     }
     public function _edit($arg_array){
         $post = $this->input->post(NULL, TRUE);