master
yulingwei 5 years ago
parent 7830cef93d
commit 0a9e7ed3ef

@ -482,17 +482,17 @@ class PresidentDepositController extends ThinkController
$data['pay_account'] = ''; $data['pay_account'] = '';
$data['amount'] = 0; $data['amount'] = 0;
$data['payer'] = ''; $data['payer'] = '';
$data['status'] = 1;
$data['pay_confirm_time'] = time(); $data['pay_confirm_time'] = time();
$data['create_time'] = time(); $data['create_time'] = time();
$data['update_time'] = time(); $data['update_time'] = time();
$data['status'] = 1; $data['status'] = 1;
$data['pay_accept_time'] = $data['refund_time'] = 0;
if (!$record) { if (!$record) {
$data['pay_accept_time'] = time();
$data['promote_id'] = $promoteId;
M('president_deposit', 'tab_')->add($data); M('president_deposit', 'tab_')->add($data);
} else { } else {
$data['pay_accept_time'] = strtotime(I('pay_accept_time', 0)); $data['promote_id'] = $promoteId;
$data['refund_time'] = strtotime(I('refund_time', 0));
M('president_deposit', 'tab_')->where(['promote_id' => $promoteId])->save($data); 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([ M('president_deposit', 'tab_')->where(['promote_id' => ['in', $promoteIds]])->save([
'status' => 2, 'status' => 2,
'refund_time' => time(), 'refund_time' => time(),
'update_time' => time() 'update_time' => time(),
'pay_accept_time' => 0
]); ]);
$this->ajaxReturn([ $this->ajaxReturn([
'status' => 1, 'status' => 1,

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

Loading…
Cancel
Save