Browse Source

提交修改

lvhao 2 days ago
parent
commit
8c4ebe4e25
1 changed files with 3 additions and 0 deletions
  1. 3 0
      core/CoreApp/controllers/Fullorder.php

+ 3 - 0
core/CoreApp/controllers/Fullorder.php

@@ -492,6 +492,9 @@ 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']);
+				if(empty($customer)){
+					$customer = $this->customer->get_email($ud['send_email'],$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]);