Browse Source

修改报考承诺书

zmw 1 year ago
parent
commit
f1f04326f8

+ 7 - 1
app/Admin/Controllers/Recruit/RecruitController.php

@@ -318,6 +318,7 @@ class RecruitController extends Controller
     public function store(Request $request)
     {
         $verify = $this->form()->getValidateInput();//这个方法会调用Form自带的验证和表单处理(文件上传等)验证错误会直接返回错误.不需要判断;
+
         $postCode = $request->input('postcode', []);
         $postName = $request->input('postname', []);
         if (count($postCode) == 0 or (count($postCode) >= 1 and $postCode[0] == null)) {
@@ -405,12 +406,14 @@ class RecruitController extends Controller
         if($verify['phone']){
             $data['phone'] = $verify['phone'];
         }
+
         if(array_key_exists('qr_code',$verify)){
             $data['qr_code'] = $verify['qr_code'];
         }
-        if($verify['addFile']){
+        if(array_key_exists('addFile',$verify)){
             $data['addFile'] = $verify['addFile'];
         }
+
         $data['ordid'] = $verify['ordid'];
         $data['limit_times'] = $verify['limit_times'];
         $data['post_times'] = $verify['post_times'];
@@ -477,7 +480,9 @@ class RecruitController extends Controller
         }
         $data['special'] = 0;
 
+
         $fileCharater = $request->input('addFile');
+
         DB::beginTransaction();//检查数据库事务
         try {
             $recruit = Recruit::create($data);
@@ -528,6 +533,7 @@ class RecruitController extends Controller
             DB::commit();//检查数据库事务
         } catch (\Exception $e) {
             DB::rollback();
+            dd($e->getMessage());die;
             return admin_toastr($e->getMessage(), 'error');
         }
 

+ 3 - 12
public/themes/default/views/app/recruit/show.blade.php

@@ -291,22 +291,13 @@
                     <span style="font-family: 微软雅黑;letter-spacing: 0;font-size: 16px">5.本人在最高人民法院失信被执行人查询平台查询有失信记录。</span>
                 </p>
                 <p style="margin-bottom: 0;margin-left: 0;text-indent: 32px;line-height: 37px">
-                    <span style="font-family: 微软雅黑;letter-spacing: 0;font-size: 16px">6.本人被列为失信被执行人且尚未履行义务。</span>
+                    <span style="font-family: 微软雅黑;letter-spacing: 0;font-size: 16px">6.本人存在法律法规规定的其他不得报考的情形。 </span>
                 </p>
                 <p style="margin-bottom: 0;margin-left: 0;text-indent: 32px;line-height: 37px">
-                    <span style="font-family: 微软雅黑;letter-spacing: 0;font-size: 16px">7.本人涉嫌违纪违法正在接受有关专门机关审查调查尚未作出结论。 </span>
+                    <strong><span style="font-family: 微软雅黑;letter-spacing: 0;font-size: 16px">提示:存在上述1-6情形的,不得参加考试。</span></strong>
                 </p>
                 <p style="margin-bottom: 0;margin-left: 0;text-indent: 32px;line-height: 37px">
-                    <span style="font-family: 微软雅黑;letter-spacing: 0;font-size: 16px">8.本人收到诫勉、组织处理或者党纪政务处分等影响期未满或期满影响使用。 </span>
-                </p>
-                <p style="margin-bottom: 0;margin-left: 0;text-indent: 32px;line-height: 37px">
-                    <span style="font-family: 微软雅黑;letter-spacing: 0;font-size: 16px">9.本人存在法律法规规定的其他不得报考的情形。 </span>
-                </p>
-                <p style="margin-bottom: 0;margin-left: 0;text-indent: 32px;line-height: 37px">
-                    <strong><span style="font-family: 微软雅黑;letter-spacing: 0;font-size: 16px">提示:存在上述1-9情形的,不得参加考试。</span></strong>
-                </p>
-                <p style="margin-bottom: 0;margin-left: 0;text-indent: 32px;line-height: 37px">
-                    <strong><span style="font-family: 微软雅黑;letter-spacing: 0;font-size: 16px">本人承诺不存在上述1-9情形。</span></strong><span style="font-family: 微软雅黑;letter-spacing: 0;font-size: 16px">本人保证所提交的报名信息和相关证明材料真实、准确、有效,如提供虚假信息和证明材料,本人愿承担一切责任。</span>
+                    <strong><span style="font-family: 微软雅黑;letter-spacing: 0;font-size: 16px">本人承诺不存在上述1-6情形。</span></strong><span style="font-family: 微软雅黑;letter-spacing: 0;font-size: 16px">本人保证所提交的报名信息和相关证明材料真实、准确、有效,如提供虚假信息和证明材料,本人愿承担一切责任。</span>
                 </p>
                 <p style="margin-top:8px;margin-left:0;text-indent:0;text-autospace:ideograph-numeric;text-align:center;line-height:37px">
                     <span style="font-family: 微软雅黑;letter-spacing: 0;font-size: 18px"><input type="checkbox" class="agree_commit" /> 我已知晓上述内容并承诺遵守。</span>