|
|
|
@ -182,7 +182,7 @@ class PromoteService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$topPromote = $this->getTopPromote($fromPromote);
|
|
|
|
|
$status = $this->shiftRemoveCoin($fromPromote, $task);
|
|
|
|
|
//$status = $this->shiftRemoveCoin($fromPromote, $task);
|
|
|
|
|
|
|
|
|
|
if (!$status) {
|
|
|
|
|
$model->rollback();
|
|
|
|
@ -206,7 +206,7 @@ class PromoteService {
|
|
|
|
|
'chain' => ['exp', 'REPLACE(chain, "/' . $fromPromote['id'] . '/","/' . $toPromote['id'] . '/")'],
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
// $status = M('ShiftTask')->where('id=' . $task['id'])->save(['status' => 1, 'handle_time' => time()]);
|
|
|
|
|
$status = M('ShiftTask')->where('id=' . $task['id'])->save(['status' => 1, 'handle_time' => time()]);
|
|
|
|
|
if (!$status) {
|
|
|
|
|
$model->rollback();
|
|
|
|
|
return ['status' => false, 'msg' => '系统异常,修改迁移任务状态失败'];
|
|
|
|
|