public function addFollow(){$follow_obj = D('Follow');if(empty($_POST['m_id']) || empty($_POST['g_id'])){ apiResponse('error','您未登录或商品ID为空!');}$where['m_id'] = I('post.m_id');$where['g_id'] = I('post.g_id');//判断是否关注过$follow = $follow_obj->findFollow($where);if($follow){...
回答于 2017-11-07 11:14
public function addFollow(){$follow_obj = D('Follow');if(empty($_POST['m_id']) || empty($_POST['g_id'])){ apiResponse('error','您未登录或商品ID为空!');}$where['m_id'] = I('post.m_id');$where['g_id'] = I('post.g_id');//判断是否关注过$follow = $follow_obj->findFollow($where);if($follow){...
回答于 2017-11-07 11:13
public function addFollow(){$follow_obj = D('Follow');if(empty($_POST['m_id']) || empty($_POST['g_id'])){ apiResponse('error','您未登录或商品ID为空!');}$where['m_id'] = I('post.m_id');$where['g_id'] = I('post.g_id');//判断是否关注过$follow = $follow_obj->findFollow($where);if($follow){...
回答于 2017-11-07 11:13