Commit a90376a4 by HTML5-侯张振

新接口错误更改

parent e040b331
...@@ -515,7 +515,6 @@ class Report extends CI_Controller ...@@ -515,7 +515,6 @@ class Report extends CI_Controller
//获取接口返回值 //获取接口返回值
$results = $api->newgetCustomerVisit(array('customer_id'=>$value['rongchuang_id'])); $results = $api->newgetCustomerVisit(array('customer_id'=>$value['rongchuang_id']));
if(!empty($results)){ if(!empty($results)){
$entity_id = $this->customer_building->get_building_id($value['id']); $entity_id = $this->customer_building->get_building_id($value['id']);
$customerBuilding = $this->customer_building->get(array('id' => $entity_id['id'])); $customerBuilding = $this->customer_building->get(array('id' => $entity_id['id']));
...@@ -527,7 +526,7 @@ class Report extends CI_Controller ...@@ -527,7 +526,7 @@ class Report extends CI_Controller
if(count($checksales,COUNT_NORMAL)>1){ if(count($checksales,COUNT_NORMAL)>1){
$checksalesnum[]=$checksalesID['user_id']; $checksalesnum[]=$checksalesID['user_id'];
}else{ }else{
$checksalesnum=$checksalesID['user_id']; $checksalesnum[]=$checksalesID['user_id'];
} }
}; };
$customer_sales_id = $this->customer_building->get_sale_id(array('customer_building_id'=>$customerBuilding['id'])); $customer_sales_id = $this->customer_building->get_sale_id(array('customer_building_id'=>$customerBuilding['id']));
...@@ -535,8 +534,8 @@ class Report extends CI_Controller ...@@ -535,8 +534,8 @@ class Report extends CI_Controller
$this->customer_sales->delete_sale_id(array('customer_building_id'=>$customerBuilding['id'])); $this->customer_sales->delete_sale_id(array('customer_building_id'=>$customerBuilding['id']));
foreach($checksalesnum as $checksales){ foreach($checksalesnum as $checksales){
$customer_sales['customer_building_id'] = $customerBuilding['id']; $customer_sales['customer_building_id'] = $customerBuilding['id'];
$customer_sales['sale_id'] = $checksales['user_id']; $customer_sales['sale_id'] = $checksales;
$customer_sales['create_time'] = timer(); $customer_sales['create_time'] = time();
$this->customer_sales->add($customer_sales); $this->customer_sales->add($customer_sales);
} }
$datasales['user_id'] = $customerBuilding['user_id']; $datasales['user_id'] = $customerBuilding['user_id'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment