Przeglądaj źródła

crime harmless 直接通过

liugc 1 rok temu
rodzic
commit
83447e6d7b

+ 4 - 0
app/common/command/AddAgreementPdf.php

@@ -91,6 +91,10 @@ class AddAgreementPdf extends Command
         \exec($shell_ . ' > /dev/null 2>&1', $output, $return_var);
         if ($return_var === 0) {
             $agreement = MasterWorkerAgree::where('code', $code)->findOrEmpty();
+            //crime harmless 直接通过
+            if(in_array($agreement->agree_type,['harmless_content','crime_content'])){
+                $agreement->audit_state = 1;
+            }
             $agreement->pdf_url = $path.$pdf;
             $agreement->save();
         } else {

+ 2 - 0
app/workerapi/logic/MasterWorkerLogic.php

@@ -229,6 +229,8 @@ class MasterWorkerLogic extends  BaseLogic
         {"block_key":2,"type":"training_task_id","type_value":1,"res_name":"operate_status","execute_function":"operateStatus","is_must":true},
         {"block_key":3,"type":"task_list","type_value":["1","2","4"],"res_name":"operate_status","execute_function":"operateStatus","is_must":true}]
         $taskList = TrainingTask::where(['worker_id'=>$userId])->select('block_key','type','type_value')->toArray();
+
+        TrainingBlockConfigLogic::getRequiredConfig($identity_source);
         foreach ( as $item) {
 
         }*/