师徒任务跳转房间

This commit is contained in:
2025-12-11 13:00:42 +08:00
parent 60134a68f7
commit c7d3aa4059
3 changed files with 108 additions and 0 deletions

View File

@@ -681,4 +681,19 @@ class Sign extends Model
return ['code' => 1, 'msg' => '操作成功', 'data' => null];
}
//获取首次被签约且在约期内的徒弟列表
public function get_first_sign_student_list($user_id)
{
$user = db::name('vs_user_sign')->field('sign_user_id as user_id')
->where(['parent_user_id' => $user_id,'sign_user_type' => 0,'end_time' => ['>',time()]])
->select();
if($user){
foreach ($user as $k => $v){
$user[$k] = model('api/User')->get_user_base_info($v['user_id']);
}
}
return ['code' => 1, 'msg' => '操作成功', 'data' => $user];
}
}