fixed 容错处理
This commit is contained in:
parent
9ee2c8dde3
commit
228209b52c
|
@ -3,8 +3,8 @@ owner_common = $redis_cache.hgetall("v2-owner-common:#{project_common["owner_id"
|
||||||
json.id item[0]
|
json.id item[0]
|
||||||
json.score item[1]
|
json.score item[1]
|
||||||
json.name project_common["name"]
|
json.name project_common["name"]
|
||||||
if project_common['identifier'].include?("/")
|
if project_common['identifier'].to_s.include?("/")
|
||||||
json.identifier project_common["identifier"].split('/')[1]
|
json.identifier project_common["identifier"].to_s.split('/')[1]
|
||||||
json.owner do
|
json.owner do
|
||||||
json.id nil
|
json.id nil
|
||||||
json.type 'User'
|
json.type 'User'
|
||||||
|
|
Loading…
Reference in New Issue