|
|
@ -22,6 +22,10 @@ class StatementMangementController extends ThinkController
|
|
|
|
$map['create_time'] = ['LT', strtotime(I('time_end')) + 86399];
|
|
|
|
$map['create_time'] = ['LT', strtotime(I('time_end')) + 86399];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($_REQUEST['verify_status']||$_REQUEST['verify_status']=='0') {
|
|
|
|
|
|
|
|
$map['verify_status'] = $_REQUEST['verify_status'];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($_REQUEST['statement_type']||$_REQUEST['statement_type']=='0') {
|
|
|
|
if ($_REQUEST['statement_type']||$_REQUEST['statement_type']=='0') {
|
|
|
|
if($_REQUEST['statement_type']=='2') {
|
|
|
|
if($_REQUEST['statement_type']=='2') {
|
|
|
|
$map['second_party_info'] = ['like','%"order_type":1%'];
|
|
|
|
$map['second_party_info'] = ['like','%"order_type":1%'];
|
|
|
@ -845,12 +849,12 @@ class StatementMangementController extends ThinkController
|
|
|
|
$isVerify = M('statement','tab_')->where(['id'=>['in',$order]])->save(['verify_status'=>1]);
|
|
|
|
$isVerify = M('statement','tab_')->where(['id'=>['in',$order]])->save(['verify_status'=>1]);
|
|
|
|
|
|
|
|
|
|
|
|
if ($isVerify) {
|
|
|
|
if ($isVerify) {
|
|
|
|
$this->success('审核通过成功');
|
|
|
|
$this->ajaxReturn(['status'=>1]);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$this->error('审核通过失败');
|
|
|
|
$this->ajaxReturn(['status'=>0]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$this->error('没有订单数据');
|
|
|
|
$this->ajaxReturn(['status'=>0]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -864,12 +868,12 @@ class StatementMangementController extends ThinkController
|
|
|
|
$isVerify = M('statement','tab_')->where(['id'=>['in',$order]])->save(['verify_status'=>2]);
|
|
|
|
$isVerify = M('statement','tab_')->where(['id'=>['in',$order]])->save(['verify_status'=>2]);
|
|
|
|
|
|
|
|
|
|
|
|
if ($isVerify) {
|
|
|
|
if ($isVerify) {
|
|
|
|
$this->success('审核拒绝成功');
|
|
|
|
$this->ajaxReturn(['status'=>1]);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$this->error('审核拒绝失败');
|
|
|
|
$this->ajaxReturn(['status'=>0]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$this->error('没有订单数据');
|
|
|
|
$this->ajaxReturn(['status'=>0]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|