Parcourir la source

工程师用户协议和隐私政策

whitefang il y a 1 an
Parent
commit
a601a3c0e8
1 fichiers modifiés avec 11 ajouts et 4 suppressions
  1. 11 4
      app/workerapi/logic/MasterWorkerAgreeLogic.php

+ 11 - 4
app/workerapi/logic/MasterWorkerAgreeLogic.php

@@ -28,10 +28,17 @@ class MasterWorkerAgreeLogic extends BaseLogic
 
 
     public static function getPolicyByType(string $type)
     public static function getPolicyByType(string $type)
     {
     {
-        return [
-            'title' => ConfigService::get('agreement', $type . '_title', ''),
-            'content' => ConfigService::get('agreement', $type . '_content', ''),
-        ];
+        if($type == 'service'){
+            return [
+                'title' => ConfigService::get('agreement', $type . '_title', ''),
+                'content' => ConfigService::get('agreement', $type . '_content', ''),
+            ];
+        }else{
+            return [
+                'title' => ConfigService::get('master_agreement', $type . '_title', ''),
+                'content' => ConfigService::get('master_agreement', $type . '_content', ''),
+            ];
+        }
     }
     }
 
 
     /**
     /**