|
|
|
@ -151,8 +151,21 @@ class index extends CI_Controller {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function recivecallback(){
|
|
|
|
|
log_message('error',$recivejson);
|
|
|
|
|
$recivejson = file_get_contents('php://input');
|
|
|
|
|
$recivedata = json_decode($recivejson);
|
|
|
|
|
$data = array();
|
|
|
|
|
$data['processInstanceId'] = $recivedata->processInstanceId;
|
|
|
|
|
$data['title'] = $recivedata->title;
|
|
|
|
|
$data['type'] = $recivedata->type;
|
|
|
|
|
$data['result'] = $recivedata->result;
|
|
|
|
|
$data['staffId'] = $recivedata->staffId;
|
|
|
|
|
if(isset($recivedata->content)){
|
|
|
|
|
$data['content'] = $recivedata->content;
|
|
|
|
|
}else{
|
|
|
|
|
$data['content'] = '';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
log_message('error',$recivejson);
|
|
|
|
|
$this->dingtools_model->add_instance_id($data);
|
|
|
|
|
}
|
|
|
|
|
}
|