master
ELF 5 years ago
parent 84b36e2d78
commit c88892ec59

@ -193,16 +193,18 @@ class PromoteService {
'chain' => $toPromote['chain'] . $toPromote['id'] . '/'
]);
if (!$status) {
$lastSql = M()->getLastSql();
$model->rollback();
return ['status' => false, 'msg' => '系统异常,修改推广员上级失败'];
return ['status' => false, 'msg' => '系统异常,修改推广员上级失败[' . $lastSql . ']'];
}
$status = M('promote', 'tab_')->where($secondMap)->save([
'chain' => ['exp', 'REPLACE(chain, "/' . $fromPromote['id'] . '/","/' . $toPromote['id'] . '/")'],
]);
if (!$status) {
$lastSql = M()->getLastSql();
$model->rollback();
return ['status' => false, 'msg' => '系统异常修改推广员CHAIN失败'];
return ['status' => false, 'msg' => '系统异常修改推广员CHAIN失败[' . $lastSql . ']'];
}
$status1 = M('ShiftTask')->where('id=' . $task['id'])->save(['status' => 1, 'handle_time' => time()]);

@ -100,14 +100,6 @@
<?php endif;?>
<?php endif;?>
<?php if(I('promote_type', 0) == 2):?>
<?php if(!in_array($record['id'], $hasShiftList)):?>
<a href="javascript:;" class="shift-btn editbtn" data-promote-shift-type="2">换组</a>
<?php else:?>
<a href="javascript:;" style="color: red;" data-promote-shift-type="2" class="cancel-shift-btn editbtn">取消换组</a>
<?php endif;?>
<?php endif;?>
<?php if(in_array($record['id'], $hasPlayerList)):?>
<?php if(!in_array($record['id'], $hasShiftPlayerList)):?>
<a href="javascript:;" class="shift-player-btn editbtn">玩家迁移</a>

Loading…
Cancel
Save