浏览代码

提交独立站的拆分订单

lvhao 3 月之前
父节点
当前提交
689cf4b3fb
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      core/CoreApp/controllers/Fullorder.php

+ 2 - 1
core/CoreApp/controllers/Fullorder.php

@@ -479,7 +479,7 @@ class Fullorder extends Start_Controller {
 				$ud['address'] = str_replace("'","’",$ud['address']);
 				$ud['name'] = str_replace("'","’",$ud['name']);
 				$customer = $this->customer->get_email($ud['email'],$value['shop']);
-				$customernum = $this->fullorder->find_count("email = '".$ud['email']."' and shop = '".$value['shop']."'");
+				$customernum = $this->fullorder->find_count("email = '".$ud['email']."' and shop = '".$value['shop']."' and  extra_status = 0");
 				preg_match_all('/[0-9]/u',$ud['phone'],$result);
 				$numphone = join('',$result[0]);
 				$hmdaddress1 = str_replace(array(' parkway',' drive',' street',' road',' avenue',' boulevard',' alley',' court',' place',' lane',' manor',' terrace',' trail',' view',' cove'),array(' pkwy',' dr',' st',' rd',' av',' blvd',' aly',' ct',' pl',' ln',' mnr',' ter',' trl',' vw',' cv'),strtolower($ud['address']));
@@ -6482,6 +6482,7 @@ class Fullorder extends Start_Controller {
 			$data['shipremarks'] = '';
 			$data['source'] = 1;
 			//$data['review'] = 2;
+			$data['extra_status'] = 1;//拆分的订单
 			
 			unset($data['id']);
 			unset($data['jweight']);