|
@@ -261,6 +261,7 @@ class Application extends Base
|
|
|
// if(empty($remote_application)){
|
|
|
log::record('新增远程申请');
|
|
|
$re = DB::table('remote_application')->where('exam_id',$param['id'])->find();
|
|
|
+ $report = array();
|
|
|
if($re){
|
|
|
// 存在被驳回申请 再次申请时则为驳回后发起的申请
|
|
|
DB::table('remote_application')->where('exam_id',$param['id'])->update($application_info);
|
|
@@ -268,17 +269,16 @@ class Application extends Base
|
|
|
}else{
|
|
|
$application_info['id'] = UUIDs::uuid16();
|
|
|
$application_info['createdAt'] = date('Y-m-d H:i:s',time());
|
|
|
- $application_info['type'] = 2;
|
|
|
DB::table('remote_application')->insert($application_info);
|
|
|
$app_id = $application_info['id'];
|
|
|
}
|
|
|
$aid = $app_id;
|
|
|
$r_info = DB::table('report')->where('exam_id',$param['id'])->find();
|
|
|
if(empty($r_info)){
|
|
|
- $report = array();
|
|
|
$report['id'] = UUIDs::uuid16();
|
|
|
$report['exam_id'] = $param['id'];
|
|
|
$report['remote_application_id'] = $aid;
|
|
|
+ $report['type'] = 2;
|
|
|
DB::table('report')->insert($report);
|
|
|
$r_id = $report['id'];
|
|
|
}else{
|