Browse Source

fixed 容错处理

pull/343/head
xxq250 2 years ago
parent
commit
228209b52c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/views/project_rank/_detail.json.jbuilder

+ 2
- 2
app/views/project_rank/_detail.json.jbuilder View File

@@ -3,8 +3,8 @@ owner_common = $redis_cache.hgetall("v2-owner-common:#{project_common["owner_id"
json.id item[0]
json.score item[1]
json.name project_common["name"]
if project_common['identifier'].include?("/")
json.identifier project_common["identifier"].split('/')[1]
if project_common['identifier'].to_s.include?("/")
json.identifier project_common["identifier"].to_s.split('/')[1]
json.owner do
json.id nil
json.type 'User'


Loading…
Cancel
Save