Commit 10aa85f0 authored by fangliyan's avatar fangliyan

app收藏相关

parent 90c67655
......@@ -968,9 +968,8 @@ class Esf_center_api extends MY_Controller {
public function api_getsaveblock()
{
$telno = $this->input->get('telno');
$uid = $this->user_model->yztelno($telno);
if($uid==0)
$base_id = $this->input->get('base_id');
if(!$base_id)
{
echo serialize(array());exit;
}
......@@ -982,8 +981,8 @@ class Esf_center_api extends MY_Controller {
$page = $page ? $page:1;
$pagesize = $pagesize?$pagesize : 20;
$offset = $pagesize * ($page-1);
$collect_array = $this->user_model->getcollectByBaseId($kind,$base_id,$offset,$pagesize,$city);
$collect_array = $this->user_model->getcollect($kind,$uid,$offset,$pagesize,$city);
if(!empty($collect_array) && is_array($collect_array))
{
foreach($collect_array as $key=>$value)
......
......@@ -2475,6 +2475,9 @@ if($searcharr['infotype']==4){
{
//设置表
$this->user_model->set_table('personal_collection');
if(is_array($arr)){
$arr = implode(',',$arr);
}
//过滤表结构
$result = $this->user_model->del_mul($arr,'id','esf');
return $result;
......
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