lvhao 6 bulan lalu
induk
melakukan
3a8afc3f78
1 mengubah file dengan 17 tambahan dan 17 penghapusan
  1. 17 17
      core/CoreApp/controllers/Returngoods.php

+ 17 - 17
core/CoreApp/controllers/Returngoods.php

@@ -199,24 +199,24 @@ class Returngoods extends Start_Controller {
         //     throw new Exception("订单不存在,请认真核对相关信息!!!");
         // }
         
-        // $info = $this->returngoods->find("orderinfo = ".$order_info['orderinfo']);
-        // 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);
-        // }
+        $info = $this->returngoods->find("orderinfo = ".$order_info['orderinfo']);
+        if(!empty($info)){
+            $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);
+        // $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);
         
        
     }