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