Commit 77624eb3 authored by zhuwei's avatar zhuwei

1

parent e03c99bd
......@@ -467,13 +467,11 @@ class UserService
*/
public function isCollect($agent_id,$user_id){
$is_collect = 2;
dump($is_collect);
if($agent_id && $user_id){
if(!empty($agent_id) && !empty($user_id) ){
$field = 'id,status';
$get_params['agents_id'] = $agent_id;
$get_params['user_id'] = $user_id;
$collect_house = new ACollectUser();
dump($get_params);
$res = $collect_house->getCollectUser($field, $get_params);
if ($res && ($res[0]['status'] == 1)) {
$is_collect = 1;
......
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