|
@@ -471,7 +471,7 @@ class Fullorderamz extends Start_Controller {
|
|
$ud = $this->fullorderamz->read($value['id']);
|
|
$ud = $this->fullorderamz->read($value['id']);
|
|
$ud['address'] = str_replace("'","’",$ud['address']);
|
|
$ud['address'] = str_replace("'","’",$ud['address']);
|
|
$ud['name'] = str_replace("'","’",$ud['name']);
|
|
$ud['name'] = str_replace("'","’",$ud['name']);
|
|
- $customer = $this->customertt->get_email($ud['email'],$value['shop']);
|
|
|
|
|
|
+ $customer = $this->customeramz->get_email($ud['email'],$value['shop']);
|
|
$customernum = $this->fullorderamz->find_count("email = '".$ud['email']."' and shop = '".$value['shop']."'");
|
|
$customernum = $this->fullorderamz->find_count("email = '".$ud['email']."' and shop = '".$value['shop']."'");
|
|
preg_match_all('/[0-9]/u',$ud['phone'],$result);
|
|
preg_match_all('/[0-9]/u',$ud['phone'],$result);
|
|
$numphone = join('',$result[0]);
|
|
$numphone = join('',$result[0]);
|
|
@@ -480,14 +480,14 @@ class Fullorderamz extends Start_Controller {
|
|
$hmdaddress3 = str_replace(array(' avenue',' ave',' av'),array(' ave',' avenue',' ave'),strtolower($ud['address']));
|
|
$hmdaddress3 = str_replace(array(' avenue',' ave',' av'),array(' ave',' avenue',' ave'),strtolower($ud['address']));
|
|
if($numphone == '0')
|
|
if($numphone == '0')
|
|
{
|
|
{
|
|
- $customerb = $this->customertt->find_all("type = 2 and (email = '".$ud['email']."' or address = '".$ud['address']."' or address = '".$hmdaddress1."' or address = '".$hmdaddress2."' or address = '".$hmdaddress3."' or phone = '".$numphone."')",'*','id desc');
|
|
|
|
|
|
+ $customerb = $this->customeramz->find_all("type = 2 and (email = '".$ud['email']."' or address = '".$ud['address']."' or address = '".$hmdaddress1."' or address = '".$hmdaddress2."' or address = '".$hmdaddress3."' or phone = '".$numphone."')",'*','id desc');
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- $customerb = $this->customertt->find_all("type = 2 and (email = '".$ud['email']."' or address = '".$ud['address']."' or address = '".$hmdaddress1."' or address = '".$hmdaddress2."' or address = '".$hmdaddress3."' or numphone = '".$numphone."')",'*','id desc');
|
|
|
|
|
|
+ $customerb = $this->customeramz->find_all("type = 2 and (email = '".$ud['email']."' or address = '".$ud['address']."' or address = '".$hmdaddress1."' or address = '".$hmdaddress2."' or address = '".$hmdaddress3."' or numphone = '".$numphone."')",'*','id desc');
|
|
}
|
|
}
|
|
- $customerc = $this->customertt->find_all("type = 1 and shop = '".$ud['shop']."' and address = '".$ud['address']."' and numphone = '".$numphone."'",'*','id desc');
|
|
|
|
- $customerd = $this->customertt->find_all("type = 2 and shop = '".$ud['shop']."' and email = '".$ud['email']."'",'*','id desc');
|
|
|
|
|
|
+ $customerc = $this->customeramz->find_all("type = 1 and shop = '".$ud['shop']."' and address = '".$ud['address']."' and numphone = '".$numphone."'",'*','id desc');
|
|
|
|
+ $customerd = $this->customeramz->find_all("type = 2 and shop = '".$ud['shop']."' and email = '".$ud['email']."'",'*','id desc');
|
|
//$a = array_column($customer, 'email'); //三维找其中健的数组
|
|
//$a = array_column($customer, 'email'); //三维找其中健的数组
|
|
//$a = array_flip($a); //键和值调换
|
|
//$a = array_flip($a); //键和值调换
|
|
$djcount = '';
|
|
$djcount = '';
|
|
@@ -685,7 +685,7 @@ class Fullorderamz extends Start_Controller {
|
|
{
|
|
{
|
|
$x .= "<p><b class='focz' data-type='2' data-id='".$value['id']."'>提交审核</b></p>";
|
|
$x .= "<p><b class='focz' data-type='2' data-id='".$value['id']."'>提交审核</b></p>";
|
|
}
|
|
}
|
|
- $x .= "<p><b class='window' data-h='/customertt/edit/".$customer['id']."' data-t='客户信息 - 修改'>客户信息</b></p>";
|
|
|
|
|
|
+ $x .= "<p><b class='window' data-h='/customeramz/edit/".$customer['id']."' data-t='客户信息 - 修改'>客户信息</b></p>";
|
|
$info_list[$key]['black'] = $x;
|
|
$info_list[$key]['black'] = $x;
|
|
$tly = "";
|
|
$tly = "";
|
|
if($value['clientremarks'] != "")
|
|
if($value['clientremarks'] != "")
|
|
@@ -2263,12 +2263,12 @@ class Fullorderamz extends Start_Controller {
|
|
$ud = $this->fullorderamz->read($value['id']);
|
|
$ud = $this->fullorderamz->read($value['id']);
|
|
$ud['address'] = str_replace("'","’",$ud['address']);
|
|
$ud['address'] = str_replace("'","’",$ud['address']);
|
|
$ud['name'] = str_replace("'","’",$ud['name']);
|
|
$ud['name'] = str_replace("'","’",$ud['name']);
|
|
- $customer = $this->customertt->get_email($ud['email'],$value['shop']);
|
|
|
|
|
|
+ $customer = $this->customeramz->get_email($ud['email'],$value['shop']);
|
|
$customernum = $this->fullorderamz->find_count("email = '".$ud['email']."' and shop = '".$value['shop']."'");
|
|
$customernum = $this->fullorderamz->find_count("email = '".$ud['email']."' and shop = '".$value['shop']."'");
|
|
preg_match_all('/[0-9]/u',$ud['phone'],$result);
|
|
preg_match_all('/[0-9]/u',$ud['phone'],$result);
|
|
$numphone = join('',$result[0]);
|
|
$numphone = join('',$result[0]);
|
|
- $customerb = $this->customertt->find_all("type = 2 and (email = '".$ud['email']."' or address = '".$ud['address']."' or numphone = '".$numphone."')",'*','id desc');
|
|
|
|
- $customerc = $this->customertt->find_all("type = 1 and shop = '".$ud['shop']."' and address = '".$ud['address']."' and numphone = '".$numphone."'",'*','id desc');
|
|
|
|
|
|
+ $customerb = $this->customeramz->find_all("type = 2 and (email = '".$ud['email']."' or address = '".$ud['address']."' or numphone = '".$numphone."')",'*','id desc');
|
|
|
|
+ $customerc = $this->customeramz->find_all("type = 1 and shop = '".$ud['shop']."' and address = '".$ud['address']."' and numphone = '".$numphone."'",'*','id desc');
|
|
//$a = array_column($customer, 'email'); //三维找其中健的数组
|
|
//$a = array_column($customer, 'email'); //三维找其中健的数组
|
|
//$a = array_flip($a); //键和值调换
|
|
//$a = array_flip($a); //键和值调换
|
|
$lkh = $value['sname'];
|
|
$lkh = $value['sname'];
|
|
@@ -4076,7 +4076,7 @@ class Fullorderamz extends Start_Controller {
|
|
$post['address2'] = $rows['address2'];
|
|
$post['address2'] = $rows['address2'];
|
|
$post['zipcode'] = $rows['zipcode'];
|
|
$post['zipcode'] = $rows['zipcode'];
|
|
$post['type'] = 2;
|
|
$post['type'] = 2;
|
|
- if($this->customertt->insert($post))
|
|
|
|
|
|
+ if($this->customeramz->insert($post))
|
|
{
|
|
{
|
|
$this->fullorderamz->save(array('black'=>1),$bd);
|
|
$this->fullorderamz->save(array('black'=>1),$bd);
|
|
echo json_encode(array('msg'=>'操作成功','success'=>true));exit;
|
|
echo json_encode(array('msg'=>'操作成功','success'=>true));exit;
|