|
@@ -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', ''),
|
|
|
|
|
+ ];
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|