5.27新功能时间修改

master
zhengyongxing 4 years ago
parent 8abf4e4eb8
commit a4bf7ff108

@ -564,7 +564,7 @@ class CompanyStatementOfflineController extends ThinkController
$saveData = [ $saveData = [
"pay_type"=>3, "pay_type"=>3,
"pay_status"=>1, "pay_status"=>1,
"pay_info"=>json_encode(["payment_user"=>$_SESSION['onethink_admin']['user_auth']["username"],"payment_time"=>$payment_time]),'pay_time'=>time() "pay_info"=>json_encode(["payment_user"=>$_SESSION['onethink_admin']['user_auth']["username"],"payment_time"=>$payment_time]),'pay_time'=>strtotime($payment_time)
]; ];
if($info_id) { if($info_id) {
$companyStatementInfo->where(['id'=>['in',$info_id]])->save($saveData); $companyStatementInfo->where(['id'=>['in',$info_id]])->save($saveData);
@ -575,7 +575,7 @@ class CompanyStatementOfflineController extends ThinkController
"pay_type"=>3, "pay_type"=>3,
"pay_status"=>2, "pay_status"=>2,
"pay_info"=>json_encode(["payment_user"=>$_SESSION['onethink_admin']['user_auth']["username"],"payment_time"=>$payment_time]) "pay_info"=>json_encode(["payment_user"=>$_SESSION['onethink_admin']['user_auth']["username"],"payment_time"=>$payment_time])
,'pay_time'=>time() ,'pay_time'=>strtotime($payment_time)
]; ];
$unPayData = SM("company_statement_info_part","tab_") $unPayData = SM("company_statement_info_part","tab_")
@ -611,7 +611,7 @@ class CompanyStatementOfflineController extends ThinkController
SM("company_statement_info_part","tab_") SM("company_statement_info_part","tab_")
->where(['info_id'=>$value['id'],'pay_status'=>['neq',1]]) ->where(['info_id'=>$value['id'],'pay_status'=>['neq',1]])
->save(["pay_status"=>1,'pay_time'=>time()]); ->save(["pay_status"=>1,'pay_time'=>strtotime($payment_time)]);
if($value['statement_money'] - $handlePayData[$value['id']] <=0) { if($value['statement_money'] - $handlePayData[$value['id']] <=0) {
//打款成功 //打款成功
@ -621,7 +621,7 @@ class CompanyStatementOfflineController extends ThinkController
"pay_status"=>1, "pay_status"=>1,
"pay_info"=>json_encode(["payment_user"=>$_SESSION['onethink_admin']['user_auth']["username"],"payment_time"=>$payment_time]), "pay_info"=>json_encode(["payment_user"=>$_SESSION['onethink_admin']['user_auth']["username"],"payment_time"=>$payment_time]),
"remark"=>$saveData['remark'], "remark"=>$saveData['remark'],
'pay_time'=>time() 'pay_time'=>strtotime($payment_time)
]); ]);
} else { } else {
$companyStatementInfo->where(['id'=>$value['id']])->save($saveData); $companyStatementInfo->where(['id'=>$value['id']])->save($saveData);

Loading…
Cancel
Save