master
yulingwei 5 years ago
parent 7830cef93d
commit 0a9e7ed3ef

@ -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,

@ -272,7 +272,7 @@
$("#pagechange").prepend("<option value='all' selected>全部</option>");
} else {
$("#pagechange").append("<option value='all'>全部</option>");
$("#pagechange").prepend("<option value='all'>全部</option>");
}
$('.time-select').each(function(){

Loading…
Cancel
Save