修复竖排的踩顶图标在踩或顶完后变成横排问题
This commit is contained in:
parent
d2376eb0b1
commit
54d4b957ee
|
@ -9,7 +9,7 @@ class PraiseTreadController < ApplicationController
|
||||||
if request.get?
|
if request.get?
|
||||||
@obj_id = params[:obj_id]
|
@obj_id = params[:obj_id]
|
||||||
@obj_type = params[:obj_type]
|
@obj_type = params[:obj_type]
|
||||||
@horizontal = params[:horizontal]
|
@horizontal = params[:horizontal].downcase == "false" ? false:true
|
||||||
@obj = find_object_by_type_and_id(@obj_type,@obj_id)
|
@obj = find_object_by_type_and_id(@obj_type,@obj_id)
|
||||||
praise_tread_plus(@obj_type,@obj_id,1)
|
praise_tread_plus(@obj_type,@obj_id,1)
|
||||||
end
|
end
|
||||||
|
@ -45,7 +45,7 @@ class PraiseTreadController < ApplicationController
|
||||||
if request.get?
|
if request.get?
|
||||||
@obj_id = params[:obj_id]
|
@obj_id = params[:obj_id]
|
||||||
@obj_type = params[:obj_type]
|
@obj_type = params[:obj_type]
|
||||||
@horizontal = params[:horizontal]
|
@horizontal = params[:horizontal].downcase == "false" ? false:true
|
||||||
@obj = find_object_by_type_and_id(@obj_type,@obj_id)
|
@obj = find_object_by_type_and_id(@obj_type,@obj_id)
|
||||||
praise_tread_plus(@obj_type,@obj_id,0)
|
praise_tread_plus(@obj_type,@obj_id,0)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue