diff --git a/Application/Admin/Controller/PresidentDepositController.class.php b/Application/Admin/Controller/PresidentDepositController.class.php index 1a064944f..2cb522999 100644 --- a/Application/Admin/Controller/PresidentDepositController.class.php +++ b/Application/Admin/Controller/PresidentDepositController.class.php @@ -482,17 +482,17 @@ class PresidentDepositController extends ThinkController $data['pay_account'] = ''; $data['amount'] = 0; $data['payer'] = ''; + $data['status'] = 1; $data['pay_confirm_time'] = time(); $data['create_time'] = time(); $data['update_time'] = time(); $data['status'] = 1; + $data['pay_accept_time'] = $data['refund_time'] = 0; + if (!$record) { - $data['pay_accept_time'] = time(); - $data['promote_id'] = $promoteId; M('president_deposit', 'tab_')->add($data); } else { - $data['pay_accept_time'] = strtotime(I('pay_accept_time', 0)); - $data['refund_time'] = strtotime(I('refund_time', 0)); + $data['promote_id'] = $promoteId; M('president_deposit', 'tab_')->where(['promote_id' => $promoteId])->save($data); } @@ -556,7 +556,8 @@ class PresidentDepositController extends ThinkController M('president_deposit', 'tab_')->where(['promote_id' => ['in', $promoteIds]])->save([ 'status' => 2, 'refund_time' => time(), - 'update_time' => time() + 'update_time' => time(), + 'pay_accept_time' => 0 ]); $this->ajaxReturn([ 'status' => 1, diff --git a/Application/Admin/View/PresidentDeposit/records.html b/Application/Admin/View/PresidentDeposit/records.html index 5a4d4c201..52b5c5288 100644 --- a/Application/Admin/View/PresidentDeposit/records.html +++ b/Application/Admin/View/PresidentDeposit/records.html @@ -272,7 +272,7 @@ $("#pagechange").prepend(""); } else { - $("#pagechange").append(""); + $("#pagechange").prepend(""); } $('.time-select').each(function(){