mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
更改:代码溯源status改为code
This commit is contained in:
@@ -18,7 +18,7 @@ class Traces::BaseController < ApplicationController
|
||||
|
||||
def check_trace_system
|
||||
code, data, error = Trace::SystemInfoService.call(current_user.trace_token)
|
||||
return render_ok({status: 501, data: {operate_time: data['operate_time']}, message: '系统维护中'}) if data['status'] === 0
|
||||
return render_ok({code: 501, data: {operate_time: data['operate_time']}, message: '系统维护中'}) if data['status'] === 0
|
||||
rescue
|
||||
# 这里根据需求跳转到404
|
||||
return render_not_found
|
||||
|
||||
Reference in New Issue
Block a user