小程序的api接口调整

dev_forge
cxt 5 years ago
parent 53ab3804cb
commit ace2663fcb

@ -21,7 +21,7 @@ class Users::ShixunService
def category_scope_shixuns
case params[:category]
when 'study' then
laboratory.shixuns.where(id: user.study_shixuns)
user.study_shixuns.where(shixuns: {id: laboratory.shixuns})
when 'manage' then
laboratory.shixuns.where(id: user.shixuns)
else

Loading…
Cancel
Save