|
|
|
@ -354,7 +354,7 @@ class ManagementsController < ApplicationController
|
|
|
|
|
#raise("choose_update_mirror exception")
|
|
|
|
|
#end
|
|
|
|
|
if flag == 0
|
|
|
|
|
mirror.update_attributes(:mirrorID => change_id, :status => 0)
|
|
|
|
|
mirror.update_attributes(:mirrorID => change_id, :status => 1)
|
|
|
|
|
# 用户操作的的行为需要记录 user_id, 中间层操作的行为user_id = -1
|
|
|
|
|
MirrorOperationRecord.create!(:mirror_repository_id => mirror.id, :mirror_id => change_id, :mirror_name => mirror.name, :status => 1, :user_id => User.current.id, :old_tag => old_id, :new_tag => change_id)
|
|
|
|
|
else
|
|
|
|
|