edit-admin-edit_agent2
This commit is contained in:
@@ -301,6 +301,9 @@ class Orders extends HD_Controller
|
||||
if (!$params['business_licence']) {
|
||||
return $this->show_json(SYS_CODE_FAIL, '请上传营业执照');
|
||||
}
|
||||
if(!$this->order_bills_model->get(['o_id'=>$params['id']])){
|
||||
$this->order_bills_model->add(['o_id'=>$params['id'],'c_time'=>time()]);
|
||||
}
|
||||
$result = $this->order_bills_model->update(array('business_licence' => $params['business_licence']), ['o_id' => $params['id']]);
|
||||
}
|
||||
if ($result) {
|
||||
@@ -319,6 +322,9 @@ class Orders extends HD_Controller
|
||||
$o_id = $this->input->post('o_id');
|
||||
$cardidA = $this->input->post('cardidA');
|
||||
$cardidB = $this->input->post('cardidB');
|
||||
if(!$this->order_bills_model->get(['o_id'=>$o_id])){
|
||||
$this->order_bills_model->add(['o_id'=>$o_id,'c_time'=>time()]);
|
||||
}
|
||||
if (!$cardidA || !$cardidB) {
|
||||
return $this->show_json(SYS_CODE_FAIL, '请上传身份证照片');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user