作者 郭鑫
1 个管道 的构建 通过 耗费 0 秒

测试问题修改

... ... @@ -132,13 +132,28 @@ class AdminResumeController extends AdminBaseController
public function operation(){
$data = $this->request->param();
// 拒绝
$model = new ResumeModel();
if($data['type'] == 4){
// 判断是否重复提交
$where_log['type'] = 2;
$where_log['elseId'] = $data['id'];
$isSet = Db::name('Refund')->where($where_log)->find();
if($isSet){
$this->apiResponse('0','请勿重复操作!');
$where_findStatus['id'] = $data['id'];
$where_findStatus['status'] = array('neq',4);
$ischange = $model->where($where_findStatus)->find();
if(!$ischange){
$this->apiResponse('0','请勿重复操作!');
}else{
$up_order['id'] = $data['id'];
$up_order['status'] = $data['type'];
$up_order['update_time'] = time();
$res = $model->isUpdate(true)->save($up_order);
if(!$res){
$this->apiResponse('0','操作失败');
}
}
}
$add_log['type'] = 2;
$add_log['elseId'] = $data['id'];
... ... @@ -150,7 +165,6 @@ class AdminResumeController extends AdminBaseController
$this->apiResponse('0','操作失败');
}
}
$model = new ResumeModel();
$up_order['id'] = $data['id'];
$up_order['status'] = $data['type'];
$up_order['update_time'] = time();
... ...