Commit 29edb5f8 authored by hujun's avatar hujun

开业审核

parent 5ebb800a
......@@ -51,11 +51,15 @@ class PayLogOpenService
public function addOpenCheck($open_id, $status, $remark, $operation_id, $operation_name)
{
$id = $this->payLogOpenLogModel->getAllList('id', $open_id, ['status' => $status]); //检查当前状态是否审核过
$id = $this->payLogOpenLogModel->getAllList('open_id', 0, ['status' => $status, 'open_id'=>$open_id]); //检查当前状态是否审核过
if (empty($id)) {
$num = $this->payLogOpenLogModel->addOpenCheck(
$this->OpenLogCheckBin($open_id, $status, $remark, $operation_id, $operation_name)
);
if ($num > 0) {
$this->payLogOpenModel->editData(['status'=>$status], $open_id); //更新状态
}
} else {
$num = 0;
}
......
......@@ -311,7 +311,7 @@ class PayLogOpen extends Basic
} else {
$pay_open_data['house_address'] = '';
}
$pay_open_data['check_log'] = $this->m_pay_open_log->getAllList('operation_name,create_time', $this->params['push_id']);
$pay_open_data['check_log'] = $this->m_pay_open_log->getAllList('operation_name,create_time', 0, ['open_id'=>$this->params['open_id']]);
$pay_open_data['open_images'] = $m_o_img->getImgList(['img_id'=>$this->params['open_id'],'img_type'=>5]);
return $this->response(200, '', $pay_open_data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment