修改bug

master
ELF 4 years ago
parent 36c4c666ec
commit a10bb888da

@ -322,9 +322,6 @@
var tr = $(this).parents('tr').eq(0) var tr = $(this).parents('tr').eq(0)
var id = tr.attr('data-id') var id = tr.attr('data-id')
var otherQuota = tr.attr('data-other-quota') var otherQuota = tr.attr('data-other-quota')
if (!isNumber(otherQuota)) {
return layer.msg('额外额度只能为正整数')
}
box.find('[name=id]').val(id) box.find('[name=id]').val(id)
box.find('[name=other_quota]').val(otherQuota) box.find('[name=other_quota]').val(otherQuota)
layer.open({ layer.open({
@ -340,6 +337,9 @@
var box = $('#other-quota-box') var box = $('#other-quota-box')
var id = box.find('[name=id]').val() var id = box.find('[name=id]').val()
var otherQuota = box.find('[name=other_quota]').val() var otherQuota = box.find('[name=other_quota]').val()
if (!isNumber(otherQuota)) {
return layer.msg('额外额度只能为正整数')
}
$.ajax({ $.ajax({
url: "{:U('setOtherQuota')}", url: "{:U('setOtherQuota')}",
type: "POST", type: "POST",

@ -352,7 +352,7 @@ class TestingResourceRepository
'bind_user_account' => $bindingRole ? $bindingRole['user_account'] : '', 'bind_user_account' => $bindingRole ? $bindingRole['user_account'] : '',
'bind_role_name' => $bindingRole ? $bindingRole['role_name'] : '', 'bind_role_name' => $bindingRole ? $bindingRole['role_name'] : '',
'base_quota' => $gameSetting ? $gameSetting['base_quota'] : 0, 'base_quota' => $gameSetting ? $gameSetting['base_quota'] : 0,
'other_quota' => $role['testing_other_quota'], 'other_quota' => intval($role['testing_other_quota']),
'quota' => $quota, 'quota' => $quota,
'verify_amount' => $verifyRecords[$role['game_role_id']] ?? 0, 'verify_amount' => $verifyRecords[$role['game_role_id']] ?? 0,
'provide_amount' => $provideRecords[$role['game_role_id']] ?? 0, 'provide_amount' => $provideRecords[$role['game_role_id']] ?? 0,

Loading…
Cancel
Save