管理后台日志唯一键值bug修改

master
zhengyongxing 5 years ago
parent f904ecec94
commit a086b38d3e

@ -241,7 +241,7 @@ class WithdrawModel extends Model{
return -1;
}
addOperationLog(['op_type'=>1,'key'=>$promote['account'].'/'.$data['begin_time'].'/'.$data['end_time'].'/'.$balance,'op_name'=>'推广结算提现','url'=>U('Query/settlement'),'menu'=>'推广员-结算管理-推广结算-推广结算提现']);
addOperationLog(['op_type'=>1,'key'=>$promote['account'].'/'.date('YmdHis',$data['begin_time']).'/'.date('YmdHis',$data['end_time']).'/'.$balance,'op_name'=>'推广结算提现','url'=>U('Query/settlement'),'menu'=>'推广员-结算管理-推广结算-推广结算提现']);
M()->commit();//事物提交
return 1;
@ -385,7 +385,7 @@ class WithdrawModel extends Model{
return -1;
}
addOperationLog(['op_type'=>1,'key'=>$promote['account'].'/'.$data['begin_time'].'/'.$data['end_time'].'/'.$balance,'op_name'=>'推广结算提现','url'=>U('Query/settlement'),'menu'=>'推广员-结算管理-推广结算-推广结算提现']);
addOperationLog(['op_type'=>1,'key'=>$promote['account'].'/'.date('YmdHis',$data['begin_time']).'/'.date('YmdHis',$data['end_time']).'/'.$balance,'op_name'=>'推广结算提现','url'=>U('Query/settlement'),'menu'=>'推广员-结算管理-推广结算-推广结算提现']);
M()->commit();//事物提交
return 1;
@ -498,7 +498,7 @@ class WithdrawModel extends Model{
if (!$withdrawId) {
return 0;//补点失败
}
addOperationLog(['op_type'=>1,'key'=>$promote['account'].'/'.$data['begin_time'].'/'.$data['end_time'].'/'.$balance,'op_name'=>'推广结算提现','url'=>U('Query/settlement'),'menu'=>'推广员-结算管理-推广结算-推广结算提现']);
addOperationLog(['op_type'=>1,'key'=>$promote['account'].'/'.date('YmdHis',$data['begin_time']).'/'.date('YmdHis',$data['end_time']).'/'.$balance,'op_name'=>'推广结算提现','url'=>U('Query/settlement'),'menu'=>'推广员-结算管理-推广结算-推广结算提现']);
return 1;
}

Loading…
Cancel
Save