
{
    "name"  : "cpu误报专项-检查热补丁升级是否成功",
    "precondition" : ["isFix"],
    "problems" : {
        "patch_box" : {
            "desc"      : "【问题】${0}",
            "advice"    : "【建议】若修复成功，建议再进行一次检测，验证检测升级结果是否成功，失败则再进行一次修复，若再不行则反馈给后台进行处理。"
        },
		"patch_precondition" : {
            "desc"      : "【问题】${0}",
            "advice"    : "【建议】${1}。"
        }
    }
}

---------------------------code-------------------------------
isFixed = precondition('isFix')

result = 'pass'
result_precondition = get_share_value('precondition_result')
message_precondition = get_share_value('precondition_message')
message_precondition_advice = get_share_value('precondition_message_advice')
result_box = get_share_value('box_result')
message_box = get_share_value('box_message')


if result_precondition == 'fail':
    add_problem('patch_precondition',[message_precondition,message_precondition_advice])
	result = 'fail'
end
if result_box == 'fail':
    add_problem('patch_box',[message_box])
	result = 'fail'
end

if result == 'fail':
    change_title('检测到热补丁相关问题，请根据具体结果进行操作')
	return 'warn'
end
change_title('cpu误报专项-检查无需补丁升级！')
return 'success'


