From 4c8ae830ed07f0ad12f1b0de4baa929cf6e63b5b Mon Sep 17 00:00:00 2001 From: p31729568 Date: Fri, 2 Aug 2019 10:09:37 +0800 Subject: [PATCH] modify tiding api --- app/views/tidings/_tiding.json.jbuilder | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/tidings/_tiding.json.jbuilder b/app/views/tidings/_tiding.json.jbuilder index 34b06320d..cdaa48299 100644 --- a/app/views/tidings/_tiding.json.jbuilder +++ b/app/views/tidings/_tiding.json.jbuilder @@ -1,6 +1,9 @@ json.extract! tiding, :id, :status, :viewed, :user_id, :tiding_type, :container_id, :container_type, :parent_container_id, :parent_container_type json.content tiding.content + json.identifier tiding.identifier +json.auth_type tiding.container_type == 'ApplyUserAuthentication' ? tiding.container.auth_type : nil + json.time tiding.how_long_time json.new_tiding tiding.unread?(@onclick_time)