verify_sign(); // 检查登录 $uid = $this->checkLogin(); // 查询用户 $custom = $Custom->getOne($uid); // 用户不存在 if( empty($custom) ) return json_send(['code'=>'error','msg'=>'用户不存在','data'=>['error'=>'用户不存在']]); // 如果没有关联企微,获取二维码,已关联的不验证 $followQrcode = $Model->getFollowQrcode($custom['city_id']); // 返回结果 return json_send(['code'=>'success','msg'=>'获取成功','data'=>['follow_qrcode'=>$followQrcode]]); } }