ソースを参照

增加地区undefined选项处理

sandm 2 年 前
コミット
582e90c424
1 ファイル変更8 行追加0 行削除
  1. 8 0
      app/Http/Controllers/Web/Recruit/IndexController.php

+ 8 - 0
app/Http/Controllers/Web/Recruit/IndexController.php

@@ -924,6 +924,14 @@ class IndexController extends WebBaseController
                 //没有报名记录,进入增加阶段的处理流程
                 DB::beginTransaction();
                 try{
+                    //20220726增加地区undefined选项处理
+                    if($index = stripos($data['native_place'],',undefined')){
+                        $data['native_place'] = substr($data['native_place'],0,$index);
+                    }
+                    if($index = stripos($data['house_register'],',undefined')){
+                        $data['house_register'] = substr($data['house_register'],0,$index);
+                    }
+
                     $data['uid'] = $uid;
                     $data['recruit_id'] = $recruit_id;
                     $result = RecruitAppointInfo::create($data);