lvhao 5 months ago
parent
commit
3950178cbd
1 changed files with 6 additions and 46 deletions
  1. 6 46
      core/CoreApp/controllers/Aatest.php

+ 6 - 46
core/CoreApp/controllers/Aatest.php

@@ -733,50 +733,7 @@ class Aatest extends Start_Controller {
 			{
 				echo json_encode(array('msg'=>'选择DPEX必须填写州信息','success'=>false));exit;
 			}
-			/**
-			$post['saddress']
-			if($post['printtype'] == 1)//如果是运单
-			{
-				$post['productdescription'] = ['productdescription'];
-			    $post['customs'] = ['customs'];
-			}
-			**/
-			//开始注释 xyxg
-			/**
-			$warehousenew = $this->warehouse->read($post['type']);
-			$ft = array();
-			$ftdata = explode('|',rtrim($fpcount,'|'));
-			foreach ($ftdata as $va)
-			{
-				$ftitle = '';
-				$va = explode('-',trim($va,'-'));
-				foreach ($va as $v)
-			    {
-					$v = $this->typeclass->read($v);
-					$ftitle .= $v['title'].' ';
-				}
-				$ft[] = rtrim($ftitle,' ');
-			}
-			$kcyz = $this->whlabel->get_kc($post['state'],$post['state'],$warehousenew['zd'],$warehousenew['ys'],$post['type'],$whlabel,$fpcount,$ft,$post['number'],$shop);//新添加订单老状态state和新状态state一样,不用走删除占用步奏
-			if($kcyz['t'] > '0')
-			{
-				echo $kcyz['m'];exit;
-			}
-			else
-			{
-			    if($this->fullorder->insert($post))
-        	    {
-					$cusnum = $this->customer->read($customerid);
-					$this->customer->save(array('num'=>$cusnum['num']+1,'time'=>$post['buytime']),$customerid);
-         		    echo json_encode(array('msg'=>'下单成功','success'=>true));exit;
-       	 	    }
-       		    else
-        	    {
-           		    echo json_encode(array('msg'=>'下单失败,请重试','success'=>false));exit;
-        	    }
-			}
-			//结束注释 
-			**/
+			
 			$dtctitle = array();
 			$dictionaries = $this->typeclass->find_all();
 			foreach ($dictionaries as $v)
@@ -838,8 +795,11 @@ class Aatest extends Start_Controller {
 			$post['jweight'] = $this->weight->get_weightcx($post['fpdata']);
 			//查询净重结束
 					$cusnum = $this->customer->read($customerid);
-					$this->customer->save(array('num'=>$cusnum['num']+1,'time'=>$post['buytime']),$customerid);
-					$this->fullorder->insert($post);
+					echo "<pre>";
+					var_dump(array('num'=>$cusnum['num']+1,'time'=>$post['buytime']),$customerid);
+					var_dump($post);
+					// $this->customer->save(array('num'=>$cusnum['num']+1,'time'=>$post['buytime']),$customerid);
+					// $this->fullorder->insert($post);
 					echo json_encode(array('msg'=>'下单成功','success'=>true));exit;	
 		}
 		echo "1";