diff --git a/config/application.config.php b/config/application.config.php new file mode 100644 index 0000000..840a41d --- /dev/null +++ b/config/application.config.php @@ -0,0 +1,26 @@ + include __DIR__ . '/modules.config.php', + // This should be an array of paths in which modules reside. + // If a string key is provided, the listener will consider that a module + // namespace, the value of that key the specific path to that module's + // Module class. + 'module_listener_options' => [ + 'module_paths' => [ + './module', + './vendor', + ], + // Using __DIR__ to ensure cross-platform compatibility. Some platforms -- + // e.g., IBM i -- have problems with globs that are not qualified. + 'config_glob_paths' => [realpath(__DIR__) . '/autoload/{,*.}{global,local}.php'], + 'config_cache_key' => 'application.config.cache', + 'config_cache_enabled' => true, + 'module_map_cache_key' => 'application.module.cache', + 'module_map_cache_enabled' => true, + 'cache_dir' => 'data/cache/', + ], +]; diff --git a/config/autoload/.gitignore b/config/autoload/.gitignore new file mode 100644 index 0000000..2ab94ab --- /dev/null +++ b/config/autoload/.gitignore @@ -0,0 +1,4 @@ +local.php +local-development.php +*.local.php +*.local-development.php diff --git a/config/autoload/README.md b/config/autoload/README.md new file mode 100644 index 0000000..4e504db --- /dev/null +++ b/config/autoload/README.md @@ -0,0 +1,8 @@ +About this directory: +===================== + +By default, this application is configured to load all configs in +`./config/autoload/{,*.}{global,local}.php`. Doing this provides a +location for a developer to drop in configuration override files provided by +modules, as well as cleanly provide individual, application-wide config files +for things like database connections, etc. diff --git a/config/autoload/api-tools-api-problem.global.php b/config/autoload/api-tools-api-problem.global.php new file mode 100644 index 0000000..c10f334 --- /dev/null +++ b/config/autoload/api-tools-api-problem.global.php @@ -0,0 +1,8 @@ + [ + // 不走框架默认的Api报错页面 + 'accept_filters' => ['skipAcceptFilter'] + ], +]; \ No newline at end of file diff --git a/config/autoload/api-tools-config.global.php b/config/autoload/api-tools-config.global.php new file mode 100644 index 0000000..c668600 --- /dev/null +++ b/config/autoload/api-tools-config.global.php @@ -0,0 +1,11 @@ + [ + 'strategies' => [ + 'ViewJsonStrategy', + ], + ], +]; diff --git a/config/autoload/api-tools-mvc-auth-oauth2-override.global.php b/config/autoload/api-tools-mvc-auth-oauth2-override.global.php new file mode 100644 index 0000000..445eb07 --- /dev/null +++ b/config/autoload/api-tools-mvc-auth-oauth2-override.global.php @@ -0,0 +1,20 @@ + [ + 'factories' => [ + OAuth2Server::class => NamedOAuth2ServerFactory::class, + ], + ], +]; diff --git a/config/autoload/exception.global.php b/config/autoload/exception.global.php new file mode 100644 index 0000000..30a8e4f --- /dev/null +++ b/config/autoload/exception.global.php @@ -0,0 +1,6 @@ + [ + 'throw_exceptions' => true, + ] +]; \ No newline at end of file diff --git a/config/autoload/extension-identity.global.php b/config/autoload/extension-identity.global.php new file mode 100644 index 0000000..2c4265e --- /dev/null +++ b/config/autoload/extension-identity.global.php @@ -0,0 +1,23 @@ + [ + + // 指定为一个用户 + // 返回false 则不验证 + 'fakeId' => false, + + // 前端header传递token的key + 'tokenKey' => 'token', + + // pc token 可用时长, 默认40分钟 + 'expire' => 60 * 40, + + // 小程序token可用时长, 默认2小时 + 'miniExpire' => 60 * 60 * 2, + + // debugMode token 可用时长 + 'debugExpire' => 60 * 60 * 24, + ] +]; \ No newline at end of file diff --git a/config/autoload/extension-pay.global.php b/config/autoload/extension-pay.global.php new file mode 100644 index 0000000..2188909 --- /dev/null +++ b/config/autoload/extension-pay.global.php @@ -0,0 +1,38 @@ + [ +// // 必填-商户号,服务商模式下为服务商商户号 +// 'mch_id' => '', +// // 必填-商户秘钥 +// 'mch_secret_key' => '', +// // 必填-商户私钥 字符串或路径,文件名:apiclient_key.pem 的文件 +// 'mch_secret_cert' => '', +// // 必填-商户公钥证书路径,文件名:apiclient_cert.pem的文件 +// 'mch_public_cert_path' => '', +// // 必填 +// 'notify_url' => '', // 回调地址 +// // 选填-小程序 的 app_id +// 'mini_app_id' => '', +// // 选填-微信公钥证书路径, optional,强烈建议 php-fpm 模式下配置此参数 +// // 这个参数需要去下载证书,具体下载方法在下面贴出来 +// 'wechat_public_cert_path' => [], +// // 选填-默认为正常模式。可选为: MODE_NORMAL, MODE_SERVICE +// 'mode' => Pay::MODE_NORMAL, +// ], + 'Easywechat' => [ + // 必要配置 + 'app_id' => 'xxxx', + 'mch_id' => 'your-mch-id', + 'key' => 'key-for-signature', // API v2 密钥 (注意: 是v2密钥 是v2密钥 是v2密钥) + + // 如需使用敏感接口(如退款、发送红包等)需要配置 API 证书路径(登录商户平台下载 API 证书) + 'cert_path' => 'path/to/your/cert.pem', // XXX: 绝对路径!!!! + 'key_path' => 'path/to/your/key', // XXX: 绝对路径!!!! + + 'notify_url' => '默认的订单回调地址', // 你也可以在下单时单独设置来想覆盖它 + + 'sandbox' => true, // 设置为 false 或注释则关闭沙箱模式 + ], +]; + diff --git a/config/autoload/extension-sms.global.php b/config/autoload/extension-sms.global.php new file mode 100644 index 0000000..b1a3252 --- /dev/null +++ b/config/autoload/extension-sms.global.php @@ -0,0 +1,11 @@ + [ + 'url' => 'https://dx.ipyy.net/smsJson.aspx', + 'userid' => '2021', + 'account' => 'xd000698', + 'password' => 'Kingdone123456', + 'sign' => '北京开元数据', + ] +]; \ No newline at end of file diff --git a/config/autoload/extension-uploader.global.php b/config/autoload/extension-uploader.global.php new file mode 100644 index 0000000..a407bd8 --- /dev/null +++ b/config/autoload/extension-uploader.global.php @@ -0,0 +1,53 @@ + [ + // 本地上传时文件存储的路径。 + 'savePath' => $_SERVER['DOCUMENT_ROOT'], + + /** + * 由于配置文件会被缓存, 导致日期路径不正确。此属性已废弃。 + * @see \Application\Service\Extension\Uploader\UploadAdapterAbstract::getSaveDir() + */ + // 文件上传文件夹 + 'saveDir' => '/upload/' . date('Y-m-d'), + + // 自定义上传文件名称。 + // 如果是字符串就是class内处理saveName的函数名称 + 'saveName' => 'handleSaveName', + + // 图片最大上传限制, 默认1M + 'imgMaxSize' => 1024 * 20, + + // 附件最大上传限制, 默认10M + 'fileMaxSize' => 1024 * 10, + + // 允许上传的图片文件后缀 + 'allowExtensions' => ['png', 'jpg', 'jpeg', 'webp', 'jfif', 'tif'], + // 允许上传的文件后缀 + 'allowFileExtensions' => ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'pdf', 'txt', 'zip', 'rar'], + // OSS上传适配器 + 'driver' => ImageUploader::DRIVER_OSS, + // 本地上传适配器 +// 'driver' => ImageUploader::DRIVER_LOCAL, + + // OSS的上传配置 + 'oss' => [ + 'yikeen' => [ + 'accessKeyId' => 'LTAI4GG8W5wjNPniP1YrGvc8', + 'accessKeySecret' => '7gUnsuT1oc7vLGvp7YjDfKFgQiS0fP', + 'endpoint' => 'http://oss-cn-beijing.aliyuncs.com', + 'bucket' => 'yikeen', + ], + 'eyda' => [ + 'accessKeyId' => 'LTAI4G1xDK8DpQRYxUQ4TYeP', + 'accessKeySecret' => 'lYfHDzKfldcjUsih85Uaj2Mw81uHd0', + 'endpoint' => 'http://oss-cn-zhangjiakou-internal.aliyuncs.com', + 'bucket' => 'eyda', + ] + ], + ] +]; \ No newline at end of file diff --git a/config/autoload/extension-validator.global.php b/config/autoload/extension-validator.global.php new file mode 100644 index 0000000..9c8c88a --- /dev/null +++ b/config/autoload/extension-validator.global.php @@ -0,0 +1,284 @@ + [ + 'DictionaryGenercsetinfotype' => $formValidatorPath . 'DictionaryGenercsetinfotypeData.php',//字典项分类 + 'DictionaryGenercsetinfo' => $formValidatorPath . 'DictionaryGenercsetinfoData.php',//字典项通用名 + 'Researchflowcat' => $formValidatorPath . 'ResearchflowcatData.php',//研究流程分类 + 'ItemRandom' => $formValidatorPath . 'ItemRandomData.php',//随机方案(随机前/无随机)设置 + 'Randomscheme' => $formValidatorPath . 'RandomschemeData.php',//随机方案(随机分组)设置 + 'ItemResearchflowcat' => $formValidatorPath . 'ItemResearchflowcatData.php',//字典项通用名 + 'DictionaryCheckcategory' => $formValidatorPath . 'DictionaryCheckcategoryData.php',//字典项检查项分类 + 'DictionaryCheckname' => $formValidatorPath . 'DictionaryChecknameData.php',//字典项检查项 + 'DictionaryCsset' => $formValidatorPath . 'DictionaryCssetData.php',//字典项cs设置 + 'DictionaryItemjob' => $formValidatorPath . 'DictionaryItemjobData.php',//字典项岗位设置 + 'DictionaryDocument' => $formValidatorPath . 'DictionaryDocumentData.php',//字典项文档管理 + 'DictionaryPatientattr' => $formValidatorPath . 'DictionaryPatientattrData.php',//字典项患者属性拓展 + 'ItemChecktime' => $formValidatorPath . 'ItemChecktimeData.php',//检查点设置 + 'AdminUser' => $formValidatorPath . 'AdminUserData.php',//系统管理-用户管理 + 'AdminRole' => $formValidatorPath . 'AdminRoleData.php',//系统管理-角色管理 + 'AdminMenu' => $formValidatorPath . 'AdminMenuData.php',//系统管理-菜单管理 + 'SignatoryInfo' => $formValidatorPath . 'SignatoryInfoData.php',//合作方管理 + 'SignatoryUser' => $formValidatorPath . 'SignatoryUserData.php',//合作方联系人 + 'SignatoryDepartment' => $formValidatorPath . 'SignatoryDepartmentData.php',//合作方机构 + 'ItemInfo' => $formValidatorPath . 'ItemInfoData.php',//项目管理 + 'ItemSignatory' => $formValidatorPath . 'ItemSignatoryData.php',//项目合作方管理 + 'ItemCenterdata' => $formValidatorPath . 'ItemCenterdataData.php',//中心信息 + 'ItemRandgroup' => $formValidatorPath . 'ItemRandgroupData.php',//研究分层 + 'ItemRandnumber' => $formValidatorPath . 'ItemRandnumberData.php',//随机分组 + 'ItemRandomdetails' => $formValidatorPath . 'ItemRandomdetailsData.php',//随机号码明细 + 'ItemItemdocumentData' => $formValidatorPath . 'ItemItemdocumentData.php',//随机号码明细 + 'ItemDocumentcontentData' => $formValidatorPath . 'ItemDocumentcontentData.php',//随机号码明细 + 'ItemCheckcontentData' => $formValidatorPath . 'ItemCheckcontentData.php',//随机号码明细 + 'DictionaryForm' => $formValidatorPath . 'DictionaryFormData.php', + 'DictionaryFormField' => $formValidatorPath . 'DictionaryFormFieldData.php', + 'ItemForm' => $formValidatorPath . 'ItemFormData.php',//表单 + 'ItemFormField' => $formValidatorPath . 'ItemFormFieldData.php', + 'RealRole' => $formValidatorPath . 'RealRoleData.php',//real角色 + 'Patientattrs' => $formValidatorPath . 'PatientattrsData.php',//受试者拓展属性 + 'Patient' => $formValidatorPath . 'PatientData.php',//受试者管理 + 'DictionaryFormGroup' => $formValidatorPath . 'DictionaryFormGroupData.php',// 表单类型管理 + 'DictionaryChecknameattr' => $formValidatorPath . 'DictionaryChecknameattrData.php',// 检查项属性拓展 + 'ItemSuperrole' => $formValidatorPath . 'ItemSuperroleData.php',// 创建项目人员管理 + 'DictionaryUnblinding' => $formValidatorPath . 'DictionaryUnblindingData.php',// 揭盲认证 + 'Entry' => $formValidatorPath . 'EntryData.php',// 添加条目 + 'Forminfo' => $formValidatorPath . 'ForminfoData.php',// 添加条目 + 'ItemRandblock' => $formValidatorPath . 'ItemRandblockData.php',//block设置 + 'ItemResearchstage' => $formValidatorPath . 'ItemResearchstageData.php',// 研究流程阶段设置 + 'DictionaryOcr' => $formValidatorPath . 'DictionaryOcrData.php',// ocr识别模板设置 + 'ItemCheckname' => $formValidatorPath . 'ItemChecknameData.php',// 检查项名称显示设置 + 'DictionaryUnit' => $formValidatorPath . 'DictionaryUnitData.php',// 单位换算设置表 + 'ItemImgtxtdiscern' => $formValidatorPath . 'ItemImgtxtdiscernData.php',// 图文识别模板设置表 + 'Unplanned' => $formValidatorPath . 'UnplannedData.php',// 计划外检查点 + 'ItemPatientCheckcontent' => $formValidatorPath . 'ItemPatientCheckcontentData.php',// 计划外检查点 + 'ItemUnblinding' => $formValidatorPath . 'ItemUnblindingData.php',//受试者揭盲设置 + 'ItemIdentificationresult' => $formValidatorPath . 'ItemIdentificationresultData.php',//按时间展示 + 'ItemIdentificationresultchange' => $formValidatorPath . 'ItemIdentificationresultchangeData.php',//按时间展示 + 'ItemIdentificationresultchangeif' => $formValidatorPath . 'ItemIdentificationresultchangeifData.php',//异常值判断 + 'ItemUrgentunblind' => $formValidatorPath . 'ItemUrgentunblindData.php',//受试者紧急揭盲设置 + 'ItemQuestion' => $formValidatorPath . 'ItemQuestionData.php',//质疑沟通 + 'ItemReply' => $formValidatorPath . 'ItemReplyData.php',//质疑沟通-回复处理 + 'Make' => $formValidatorPath . 'MakeData.php',//受试者预约管理 + 'Patientbreak' => $formValidatorPath . 'Patientbreak.php',//受试者脱离 + 'ItemCsae' => $formValidatorPath . 'ItemCsaeData.php',//ae判断 + 'AdminAppletsrolemenurelation' => $formValidatorPath . 'AdminAppletsrolemenurelationData.php',//小程序平台设置 + 'RoleSignatoryRelation' => $formValidatorPath . 'RoleSignatoryRelationData.php',//项目合作方角色关系 + 'ItemMedication' => $formValidatorPath . 'ItemMedicationData.php',//药物分组 + 'ItemAppletsdata' => $formValidatorPath . 'ItemAppletsdataData.php',//小程序数据设置 + 'ItemVicecopy' => $formValidatorPath . 'ItemVicecopyData.php',//副项目复制 + 'DictionaryRule' => $formValidatorPath . 'DictionaryRuleData.php',//验证规则 + 'DictionaryFormtype' => $formValidatorPath . 'DictionaryFormtypeData.php',//输入类型 + 'DictionaryFormtyperule' => $formValidatorPath . 'DictionaryFormtyperuleData.php',//类型与验证规则关系 + 'ItemAgecountset' => $formValidatorPath . 'ItemAgecountsetData.php',//自定义年龄段 + 'DictionaryWorkset' => $formValidatorPath . 'DictionaryWorksetData.php',//工作流程字典项设置表 + 'WorklistItemworklist' => $formValidatorPath . 'WorklistItemworklistData.php',//项目工作流程明细表 + 'WorklistItemcustomname' => $formValidatorPath . 'WorklistItemcustomnameData.php',//项目工作流程自定义检查项药物器械表 + 'WorklistItemworklistset' => $formValidatorPath . 'WorklistItemworklistsetData.php',//项目工作流程设置表 + 'WorklistSigworklist' => $formValidatorPath . 'WorklistSigworklistData.php',//项目中心工作流程明细表 + 'WorklistSigcustomname' => $formValidatorPath . 'WorklistSigcustomnameData.php',//项目工作流程自定义检查项药物器械表 + 'WorklistSigworklistset' => $formValidatorPath . 'WorklistSigworklistsetData.php',//项目工作流程设置表 + 'WorklistPatientinfo' => $formValidatorPath . 'WorklistPatientinfoData.php',//项目患者工作流程 - 基本信息表 + 'WorklistPatientconnect' => $formValidatorPath . 'WorklistPatientconnectData.php',//项目患者工作流程 - 沟通过程表 + 'WorklistPatientworklist' => $formValidatorPath . 'WorklistPatientworklistData.php',//项目患者工作流程 - 工作进度表 + 'ItemExport' => $formValidatorPath . 'ItemExportData.php',//导出 + 'Export' => $formValidatorPath . 'ExportData.php',//导出 + 'ItemPatientsign' => $formValidatorPath . 'ItemPatientsignData.php', + 'ItemCopyocr' => $formValidatorPath . 'ItemCopyocr.php', + 'DictionaryListset' => $formValidatorPath . 'DictionaryListsetData.php',//工作清单字典项设置表 + 'ListsetItemlist' => $formValidatorPath . 'ListsetItemlistData.php',//项目工作清单表 + 'ListsetSiglist' => $formValidatorPath . 'ListsetSiglistData.php',//项目中心工作清单表 + 'ListsetOperate' => $formValidatorPath . 'ListsetOperateData.php',//项目中心工作清单操作轨迹表 + 'ListsetAnnex' => $formValidatorPath . 'ListsetAnnexData.php',//项目中心工作清单附件表 + 'ListsetAnnexcat' => $formValidatorPath . 'ListsetAnnexcatData.php',//项目中心工作清单附件分类表 + 'ListsetFlow' => $formValidatorPath . 'ListsetFlowData.php',//项目中心工作清单操作评审记录表 + 'BusinessCategory' => $formValidatorPath . 'BusinessCategoryData.php',//业务流程分类表 + 'BusinessRecord' => $formValidatorPath . 'BusinessRecordData.php',//项目中心业务流程表 + 'BusinessRecordannex' => $formValidatorPath . 'BusinessRecordannexData.php',//项目中心业务流程附件表 + 'ItemIdentificationresultdestroy' => $formValidatorPath . 'ItemIdentificationresultdestroyData.php',//识别结果单个指标解锁 + 'ItemIdentificationresultDoctorIdea' => $formValidatorPath . 'ItemIdentificationresultDoctorIdeaData.php',//医嘱 + 'Questionconfig' => $formValidatorPath . 'QuestionconfigData.php',//质疑配置 + 'OcrKeyword' => $formValidatorPath . 'OcrKeywordData.php',//检查项设置信息表 + 'OcrRawdata' => $formValidatorPath . 'OcrRawdataData.php',//识别原始数据 + 'OcrMatedata' => $formValidatorPath . 'OcrMatedataData.php',//原始数据与关键字匹配 + 'OcrMedicalword' => $formValidatorPath . 'OcrMedicalwordData.php',//医嘱黑/白名单设置 + 'OcrMatewhite' => $formValidatorPath . 'OcrMatewhiteData.php',//医嘱黑/白名单匹配 + 'OcrMateblack' => $formValidatorPath . 'OcrMateblackData.php',//医嘱黑/白名单匹配 + 'OcrSigpatient' => $formValidatorPath . 'OcrSigpatientData.php',//中心受试者 + 'OcrMedical' => $formValidatorPath . 'OcrMedicalData.php',//医嘱原始数据 + 'OcrOcrannex' => $formValidatorPath . 'OcrOcrannexData.php',//附件信息 + 'OcrRawword' => $formValidatorPath . 'OcrRawwordData.php',//指标黑名单设置 + 'OcrRawblack' => $formValidatorPath . 'OcrRawblackData.php',//指标匹配数据与黑名单匹配 + 'OcrRawlock' => $formValidatorPath . 'OcrRawlockData.php',//化验单锁定 + 'OcrMedicallock' => $formValidatorPath . 'OcrMedicallockData.php',//医嘱锁定 + 'OcrChangetype' => $formValidatorPath . 'OcrChangetypeData.php',//图片处理字典项 + 'OcrDeletename' => $formValidatorPath . 'OcrDeletenameData.php',//批量删除无效识别项 + 'OcrReplace' => $formValidatorPath . 'OcrReplaceData.php',//批量替换识别信息 + 'OcrAnnextype' => $formValidatorPath . 'OcrAnnextypeData.php',//附件类型信息 + 'OcrSigkeyword' => $formValidatorPath . 'OcrSigkeywordData.php',//中心检查项设置信息 + 'OcrCt' => $formValidatorPath . 'OcrCtData.php',//CT原始数据信息表 + 'BlindMethodLog' => $formValidatorPath . 'BlindMethodLogData.php',//非盲信息确认 + 'OcrLoseannex' => $formValidatorPath . 'OcrLoseannexData.php',//批量弃用文件名信息 + 'OcrMatesearch' => $formValidatorPath . 'OcrMatesearchData.php',//匹配信息检索 + 'ItemOcrCsaePaitentDetail' => $formValidatorPath . 'ItemOcrCsaePaitentDetailData.php',//住院日期及费用信息 + 'ItemOcrCasePatientSpecialdetail' => $formValidatorPath . 'ItemOcrCasePatientSpecialdetailData.php',//特殊中心住院日期及费用信息 + 'ItemRemarks' => $formValidatorPath . 'ItemRemarksData.php',//项目备注 + 'ItemChangeCollectDate' => $formValidatorPath . 'ItemChangeCollectDateData.php',//识别采集时间调整 + 'OcrCtcase' => $formValidatorPath . 'OcrCtcaseData.php',//识别采集时间调整 + 'OcrCaseremark' => $formValidatorPath . 'OcrCaseremarkData.php',//首页备注信息 + 'ItemOcrCsaePaitentDetailNew' => $formValidatorPath . 'ItemOcrCsaePaitentDetailNewData.php',//第二批住院日期及费用信息 + 'ItemOcrCasePatientSpecialdetailNew' => $formValidatorPath . 'ItemOcrCasePatientSpecialdetailNewData.php',//第二批特殊中心住院日期及费用信息 + 'OcrDrug' => $formValidatorPath . 'OcrDrugData.php',//药物名称信息 + 'OcrTake' => $formValidatorPath . 'OcrTakeData.php',//剂型/服用方式/服用次数信息 + 'OcrCtreplace' => $formValidatorPath . 'OcrCtreplaceData.php',//影像替换信息 + 'OcrMatedrug' => $formValidatorPath . 'OcrMatedrugData.php',//医嘱原始数据与药物匹配信息 + 'OcrDrugcategory' => $formValidatorPath . 'OcrDrugcategoryData.php',//药物分类信息 + 'DictionaryMedicaltake' => $formValidatorPath . 'DictionaryMedicaltakeData.php',//医嘱字典项信息 + 'DictionaryMedicalword' => $formValidatorPath . 'DictionaryMedicalwordData.php',//医嘱黑白名单信息 + 'DictionaryDrugcategory' => $formValidatorPath . 'DictionaryDrugcategoryData.php',//医嘱药物分类信息 + 'DictionaryDrug' => $formValidatorPath . 'DictionaryDrugData.php',//医嘱药物信息 + 'MedicalMatewhite' => $formValidatorPath . 'MedicalMatewhiteData.php',//医嘱白名单匹配 + 'MedicalMateblack' => $formValidatorPath . 'MedicalMateblackData.php',//医嘱白名单与黑名单匹配 + 'MedicalMatedrug' => $formValidatorPath . 'MedicalMatedrugData.php',//医嘱原始数据与药物匹配信息 + 'MedicalOcrdata' => $formValidatorPath . 'MedicalOcrdataData.php',//医嘱原始数据 + 'MedicalLock' => $formValidatorPath . 'MedicalLockData.php',//医嘱锁定信息 + 'PatientFormContentImg' => $formValidatorPath . 'PatientFormContentImgData.php',//患者医嘱用药附件信息 + 'TmpDeletename' => $formValidatorPath . 'TmpDeletenameData.php',//删除识别名称信息表 + 'TmpDrug' => $formValidatorPath . 'TmpDrugData.php',//药物字典项信息表 + 'TmpDrugcategory' => $formValidatorPath . 'TmpDrugcategoryData.php',//药物分类字典项信息表 + 'TmpKeyword' => $formValidatorPath . 'TmpKeywordData.php',//检查项信息表 + 'TmpMedical' => $formValidatorPath . 'TmpMedicalData.php',//医嘱原始数据信息表 + 'TmpMedicalblack' => $formValidatorPath . 'TmpMedicalblackData.php',//医嘱匹配上白名单与黑名单匹配信息表 + 'TmpMedicaldrug' => $formValidatorPath . 'TmpMedicaldrugData.php',//医嘱原始数据与药物匹配信息表 + 'TmpMedicallock' => $formValidatorPath . 'TmpMedicallockData.php',//医嘱锁定数据信息表 + 'TmpMedicaltake' => $formValidatorPath . 'TmpMedicaltakeData.php',//用药字典项信息表 + 'TmpMedicalwhite' => $formValidatorPath . 'TmpMedicalwhiteData.php',//医嘱与白名单匹配信息表 + 'TmpMedicalword' => $formValidatorPath . 'TmpMedicalwordData.php',//医嘱黑白名单信息表 + 'TmpRawblack' => $formValidatorPath . 'TmpRawblackData.php',//化验单匹配上检查项的数据的与黑名单匹配信息表 + 'TmpRawdata' => $formValidatorPath . 'TmpRawdataData.php',//识别原始数据信息表 + 'TmpRawlock' => $formValidatorPath . 'TmpRawlockData.php',//化验单锁定数据信息表 + 'TmpRawmate' => $formValidatorPath . 'TmpRawmateData.php',//化验单原始数据与检查项匹配信息表 + 'TmpRawword' => $formValidatorPath . 'TmpRawwordData.php',//指标黑名单信息表 + 'TmpReplace' => $formValidatorPath . 'TmpReplaceData.php',//替换识别项信息表 + 'TmpSigkeyword' => $formValidatorPath . 'TmpSigkeywordData.php',//中心检查项设置信息表 + 'TmpHospital' => $formValidatorPath . 'TmpHospitalData.php',//入院记录字典项信息表 + 'TmpInspect' => $formValidatorPath . 'TmpInspectData.php',//体格检查分类信息表 + 'TmpPatienthospital' => $formValidatorPath . 'TmpPatienthospitalData.php',//患者入院记录信息表 + 'TmpReport' => $formValidatorPath . 'TmpReportData.php',//介入报告字典项信息表 + 'DictionaryDiseasecategory' => $formValidatorPath . 'DictionaryDiseasecategoryData.php',//疾病分类设置 + 'DictionaryDisease' => $formValidatorPath . 'DictionaryDiseaseData.php',//疾病设置 + 'TmpAnnex' => $formValidatorPath . 'TmpAnnexData.php',//附件信息表 + 'TmpPatient' => $formValidatorPath . 'TmpPatientData.php',//临时患者信息表 + 'TmpPatientct' => $formValidatorPath . 'TmpPatientctData.php',//临时患者影像信息表 + 'TmpCustom' => $formValidatorPath . 'TmpCustomData.php',//临时患者影像化验单原始数据信息表 + 'TmpTable' => $formValidatorPath . 'TmpTableData.php',//临时患者医嘱介入报告原始数据信息 + 'TmpText' => $formValidatorPath . 'TmpTextData.php',//临时患者入院出院原始数据信息 + 'TmpOutmedical' => $formValidatorPath . 'TmpOutmedicalData.php',//临时患者出院用药信息 + 'TmpIntervene' => $formValidatorPath . 'TmpInterveneData.php',//临时患者介入报告信息 + 'TmpIntervene0' => $formValidatorPath . 'TmpIntervene0Data.php',//临时患者介入报告病态部位信息 + 'TmpIntervene1' => $formValidatorPath . 'TmpIntervene1Data.php',//临时患者介入报告置入支架信息 + 'TmpIntervene2' => $formValidatorPath . 'TmpIntervene2Data.php',//临时患者介入报告药物球囊信息 + 'OcrRawlockunique' => $formValidatorPath . 'OcrRawlockuniqueData.php',//天坛患者化验单去重信息 + 'TmpCtreplace' => $formValidatorPath . 'TmpCtreplaceData.php',//秋水仙碱心电图彩超替换信息 + 'MessageField' => $formValidatorPath . 'MessageFieldData.php',//消息推送字段设置 + 'MessageSend' => $formValidatorPath . 'MessageSendData.php',//消息推送信息设置 + 'CollectCategory' => $formValidatorPath . 'CollectCategoryData.php',//病例收集分类设置 + 'CollectInspect' => $formValidatorPath . 'CollectInspectData.php',//病例收集体格检查分类信息表 + 'CollectHospital' => $formValidatorPath . 'CollectHospitalData.php',//病例收集入院字典项信息表 + 'CollectItemhospital' => $formValidatorPath . 'CollectItemhospitalData.php',//病例收集项目入院记录字典项信息表 + 'CollectOut' => $formValidatorPath . 'CollectOutData.php',//病例收集出院字典项信息表 + 'CollectItemout' => $formValidatorPath . 'CollectItemoutData.php',//病例收集项目出院记录字典项信息表 + 'CollectDrugcategory' => $formValidatorPath . 'CollectDrugcategoryData.php',//病例收集药物分类信息表 + 'CollectDrug' => $formValidatorPath . 'CollectDrugData.php',//病例收集药物字典项信息表 + 'CollectMedicalword' => $formValidatorPath . 'CollectMedicalwordData.php',//病例收集医嘱黑/白名单信息表 + 'CollectMedicaltake' => $formValidatorPath . 'CollectMedicaltakeData.php',//病例收集用药字典项信息表 + 'CollectItemdrug' => $formValidatorPath . 'CollectItemdrugData.php',//病例收集项目药物字典项信息表 + 'CollectEcg' => $formValidatorPath . 'CollectEcgData.php',//病例收集心电图字典项信息表 + 'CollectItemecg' => $formValidatorPath . 'CollectItemecgData.php',//病例收集项目心电图字典项信息表 + 'CollectCt' => $formValidatorPath . 'CollectCtData.php',//病例收集彩超字典项信息表 + 'CollectItemct' => $formValidatorPath . 'CollectItemctData.php',//病例收集项目彩超字典项信息表 + 'CollectReport' => $formValidatorPath . 'CollectReportData.php',//病例收集介入报告字典项信息表 + 'CollectItemreport' => $formValidatorPath . 'CollectItemreportData.php',//病例收集项目介入报告字典项信息表 + 'CollectKeywordcat' => $formValidatorPath . 'CollectKeywordcatData.php',//病例收集检查项分类字典项信息表 + 'CollectKeyword' => $formValidatorPath . 'CollectKeywordData.php',//病例收集检查项字典项信息表 + 'CollectRawword' => $formValidatorPath . 'CollectRawwordData.php',//病例收集化验单黑名单信息表 + 'CollectItemkeyword' => $formValidatorPath . 'CollectItemkeywordData.php',//病例收集项目检查项字典项信息表 + 'CollectCost' => $formValidatorPath . 'CollectCostData.php',//病例收集费用字典项信息表 + 'CollectItemcost' => $formValidatorPath . 'CollectItemcostData.php',//病例收集项目费用字典项信息表 + 'MessageSendPatient' => $formValidatorPath . 'MessageSendPatientData.php',//受试者推送信息 + 'CollectPatienthospital' => $formValidatorPath . 'CollectPatienthospitalData.php',//病例收集患者入院记录信息表 + 'CollectPatientecg' => $formValidatorPath . 'CollectPatientecgData.php',//病例收集患者心电图记录信息表 + 'CollectPatientct' => $formValidatorPath . 'CollectPatientctData.php',//病例收集患者彩超记录信息表 + 'CollectPatientreport' => $formValidatorPath . 'CollectPatientreportData.php',//病例收集患者介入报告记录信息表 + 'CollectPatientraw' => $formValidatorPath . 'CollectPatientrawData.php',//病例收集患者化验单记录信息表 + 'CollectPatientrawmate' => $formValidatorPath . 'CollectPatientrawmateData.php',//病例收集患者化验单匹配记录信息表 + 'CollectPatientrawblack' => $formValidatorPath . 'CollectPatientrawblackData.php',//病例收集患者化验单黑名单匹配记录信息表 + 'CollectPatientrawlock' => $formValidatorPath . 'CollectPatientrawlockData.php',//病例收集患者化验单锁定记录信息表 + 'CollectPatientmedical' => $formValidatorPath . 'CollectPatientmedicalData.php',//病例收集患者医嘱原始数据信息表 + 'CollectPatientmedicalwhite' => $formValidatorPath . 'CollectPatientmedicalwhiteData.php',//病例收集患者医嘱与白名单匹配信息表 + 'CollectPatientmedicalblack' => $formValidatorPath . 'CollectPatientmedicalblackData.php',//病例收集患者医嘱匹配上白名单与黑名单匹配信息表 + 'CollectPatientmedicaldrug' => $formValidatorPath . 'CollectPatientmedicaldrugData.php',//病例收集患者医嘱原始数据与药物匹配信息表 + 'CollectPatientmedicallock' => $formValidatorPath . 'CollectPatientmedicallockData.php',//病例收集患者医嘱锁定数据信息表 + 'CollectPatientout' => $formValidatorPath . 'CollectPatientoutData.php',//病例收集患者出院记录信息表 + 'OcrSpecialmedical' => $formValidatorPath . 'OcrSpecialmedicalData.php',//特殊用药整理信息表 + 'CollectPatient' => $formValidatorPath . 'CollectPatientData.php',//病例收集患者信息表 + 'CollectAnnex' => $formValidatorPath . 'CollectAnnexData.php',//病例收集患者附件信息表 + 'ExportSas' => $formValidatorPath . 'ExportSasData.php',//sas导出 + 'CollectSighospital' => $formValidatorPath . 'CollectSighospitalData.php',//病例收集项目中心入院记录信息表 + 'CollectSigout' => $formValidatorPath . 'CollectSigoutData.php',//病例收集项目中心出院记录信息表 + 'CollectSigkeyword' => $formValidatorPath . 'CollectSigkeywordData.php',//病例收集项目中心检查项字典项信息表 + 'ItemFormrecognition' => $formValidatorPath . 'ItemFormrecognitionData.php',//表单识别配置信息表 + 'ItemDrugbatch' => $formValidatorPath . 'ItemDrugbatchData.php',//药物批次信息 + 'ItemPatientformimgcontent' => $formValidatorPath . 'ItemPatientformimgcontentData.php',//常规类(识别)表单识别拆分信息 + 'DictionaryDetectname' => $formValidatorPath . 'DictionaryDetectnameData.php',//字典项检查项 + 'ItemSigdrugbatch' => $formValidatorPath . 'ItemSigdrugbatchData.php',//中心选择药物批次信息 + 'ItemPatientdrugbatch' => $formValidatorPath . 'ItemPatientdrugbatchData.php',//受试者取药信息 + 'CollectTable' => $formValidatorPath . 'CollectTableData.php',//表格识别信息 + 'CollectText' => $formValidatorPath . 'CollectTextData.php',//文本识别信息 + 'CollectCustom' => $formValidatorPath . 'CollectCustomData.php',//自定义识别信息 + 'ItemResultidentify' => $formValidatorPath . 'ItemResultidentifyData.php',//特殊结果标识字典项 + 'ItemIdentificationexport' => $formValidatorPath . 'ItemIdentificationexportData.php',//研究者申请导出 + 'DoctoradviceOriginal' => $formValidatorPath . 'DoctoradviceOriginalData.php',//医嘱信息表 + 'ItemPatientinfo' => $formValidatorPath . 'ItemPatientinfoData.php',//追加患者信息 + 'DictionaryLeverform' => $formValidatorPath . 'DictionaryLeverformData.php',//层级字典项表单设置表 + 'DictionaryLevervalue' => $formValidatorPath . 'DictionaryLevervalueData.php',//层级字典项选项设置表 + 'ItemSignaturebatch' => $formValidatorPath . 'ItemSignaturebatchData.php',//受试者表单电子签名批次表 + 'ItemSignaturedetail' => $formValidatorPath . 'ItemSignaturedetailData.php',//受试者表单电子签名明细表 + 'ItemDetectpatient' => $formValidatorPath . 'ItemDetectpatientData.php',//受试者重点事件监控信息表 + 'DictionaryOcrreplace' => $formValidatorPath . 'DictionaryOcrreplaceData.php',//识别数据字样替换信息表 + 'ItemCissclass' => $formValidatorPath . 'ItemCissclassData.php',//项目CISS分型信息表 + 'ItemCissoption' => $formValidatorPath . 'ItemCissoptionData.php',//项目CISS分型选项信息表 + 'ItemPatientciss' => $formValidatorPath . 'ItemPatientcissData.php',//项目受试者CISS分型信息表 + 'Fixednametype' => $formValidatorPath . 'FixednametypeData.php',//固定变量名分类字典项检查项 + 'Fixedname' => $formValidatorPath . 'FixednameData.php',//固定变量名明细表 + 'ProjectMsgset' => $formValidatorPath . 'ProjectMsgsetData.php',//消息提醒设置信息 + 'ProjectMsginfo' => $formValidatorPath . 'ProjectMsginfoData.php',//每日人员待处理工作明细信息表 + 'ProjectMsgsend' => $formValidatorPath . 'ProjectMsgsendData.php',//待处理信息提醒记录 + 'ItemPlanviolate' => $formValidatorPath . 'ItemPlanviolateData.php',//方案违背监察字典项表 + 'AdminWeblink' => $formValidatorPath . 'AdminWeblinkData.php', //网站管理表 + 'AdminWorkbatch' => $formValidatorPath . 'AdminWorkbatchData.php', //个人工作统计批次表 + 'AdminWorkinfo' => $formValidatorPath . 'AdminWorkinfoData.php', //个人工作统计明细表 + 'DictionaryEventset' => $formValidatorPath . 'DictionaryEventsetData.php',//其他事件管理字典项 + 'DictionaryEventattr' => $formValidatorPath . 'DictionaryEventattrData.php',//其他事件管理字典项属性 + 'AdminMedicallock' => $formValidatorPath . 'AdminMedicallockData.php', //个人核查用药工作统计明细表 + 'ItemPatientevent' => $formValidatorPath . 'ItemPatienteventData.php', //其他事件管理信息表 + 'ItemPatienteventset' => $formValidatorPath . 'ItemPatienteventsetData.php', //其他事件管理设置信息表 + 'ProjectPatientwork' => $formValidatorPath . 'ProjectPatientworkData.php', //化验单/常规识别工作记录表 + 'ProjectMedicalquestion' => $formValidatorPath . 'ProjectMedicalquestionData.php', //用药信息复核问题批次表 + 'ProjectMedicalquestioninfo' => $formValidatorPath . 'ProjectMedicalquestioninfoData.php', //用药信息复核问题明细表 + 'ProjectMedicalconfirm' => $formValidatorPath . 'ProjectMedicalconfirmData.php', //用药信息复核确认批次记录表 + 'ProjectMedicalconfirminfo' => $formValidatorPath . 'ProjectMedicalconfirminfoData.php', //用药信息复核确认明细记录表 + 'ProjectMedicalset' => $formValidatorPath . 'ProjectMedicalsetData.php', //用药信息复核设置表 + 'ItemCheckdate' => $formValidatorPath . 'ItemCheckdateData.php', //项目化验单采集时间类型记录表 + 'ProjectCmdrugset' => $formValidatorPath . 'ProjectCmdrugsetData.php', //项目用药原因默认药物信息表 + 'ItemPatientformunlock' => $formValidatorPath . 'ItemPatientformunlockData.php', //申请解锁信息表 + 'CollectPatientdrug' => $formValidatorPath . 'CollectPatientdrugData.php', //受试者用药及核查信息表 + 'DictionaryItemcategory' => $formValidatorPath . 'DictionaryItemcategoryData.php', //项目分类管理字典项 + 'ItemPackage' => $formValidatorPath . 'ItemPackageData.php', //项目分类管理字典项 + ] +]; \ No newline at end of file diff --git a/config/autoload/extension-wechat.global.php b/config/autoload/extension-wechat.global.php new file mode 100644 index 0000000..0ecc578 --- /dev/null +++ b/config/autoload/extension-wechat.global.php @@ -0,0 +1,74 @@ + [ + 'app_id' => 'wx674823c8b5a3db64', + 'secret' => '213ebb7b47040fa962b6cd5e317b9170', + // 用户扫码地址 + 'forward_code_url' => 'http://esm.kingdone.com/forward?auk={auk}&state={state}', + // callback 地址 + 'forward_callback_url' => 'http://esm.kingdone.com/callback', + // 转发获取微信公众号用户信息 + 'forward_user_url' => 'http://esm.kingdone.com/wechatuser', + 'forward_auk' => 'lwl', + 'open_forward' => true, // 是否开启微信公众号授权转发地址 + // webH5代理 + 'h5Proxy' => [ + 'forward_auk' => '', + 'open_forward' => false, // 是否开启微信公众号授权转发地址 + // 静默授权地址 + 'forward_code_url' => 'http://esm.kingdone.com/webH5Forward?auk={auk}', + // callback 地址 + 'forward_callback_url' => 'http://esm.kingdone.com/webH5Callback', + ] + ], + //受试者H5公众号 + 'patient_H5' => [ + 'default' => [ + 'name' => '开元科技Aigenius', + 'app_id' => 'wx6b3fdf24638e6885', + 'secret' => '24a6996d9539ac861d30f13ed35d5ac5', + 'client_id' => 'wx6b3fdf24638e6885', + 'client_secret' => '24a6996d9539ac861d30f13ed35d5ac5', + 'open_forward' => true, //是否使用微信公众号转发地址 + 'forward_code_url' => 'https://www.e-yda.cn/application/wechatadv/forwardcode?auk={auk}', //code转发地址 + 'forward_openid_url' => 'https://www.e-yda.cn/application/wechatadv/forwardopenid?code={code}', //获取openid,access_token信息转发地址 + 'forward_userinfo_url' => 'https://www.e-yda.cn/application/wechatadv/forwarduserinfo?access_token={access_token}&openid={openid}', //获取用户基本信息转发地址 + 'forward_auk' => '', + ], + ], + //微信小程序 + 'applets' => [ + 'scitrials' => [ + 'app_id' => 'wxf5c075c9ef6fe12a', + 'secret' => 'eee78a727275ce716bcb411b41d0cb9c' + ], + 'eyda' => [ + 'app_id' => 'wxf5c075c9ef6fe12a', + 'secret' => 'eee78a727275ce716bcb411b41d0cb9c' + ], + ], + // 企业微信 + 'work' => [ + 'app' => [ + 'corp_id' => '', + 'secret' => '', + 'agent' => [] + ], + 'departmentIdPrefix' => [ + 'item' => 'sdm-item-', + 'itemsig' => 'sdm-itemsig-' + ], + 'userIdPrefix' => 'sdm-user-', + 'sigroleCode' => 'yjys', + 'defaultUser' => 'llbjj89', + ], + //微信公众号授权转发地址 + 'wechatRedirectUrlConfig' => [ + ], + //微信公众号H5授权转发地址 + 'wechatH5RedirectUrlConfig' => [ + ] +]; diff --git a/config/autoload/global-development.php b/config/autoload/global-development.php new file mode 100644 index 0000000..83c8fc3 --- /dev/null +++ b/config/autoload/global-development.php @@ -0,0 +1,18 @@ + [ + 'display_exceptions' => true, + ], + 'api-tools-admin' => [ + 'path_spec' => ModulePathSpec::PSR_4, + ], + 'api-tools-configuration' => [ + 'enable_short_array' => true, + 'class_name_scalars' => true, + ], +]; diff --git a/config/autoload/global.php b/config/autoload/global.php new file mode 100644 index 0000000..2dd228a --- /dev/null +++ b/config/autoload/global.php @@ -0,0 +1,70 @@ + [ + 'selectors' => [], + ], + 'db' => [ + 'adapters' => [ + 'dbAdapter' => [ + 'driver' => 'Pdo', + 'username' => 'sdm_dev', + 'password' => 'OTY5OGE1ZmRhYzdlODEw', + 'dsn' => 'mysql:dbname=sdm_dev;host=rm-8vb4w1p44yiv44yl5.mysql.zhangbei.rds.aliyuncs.com;port=3306;charset=utf8mb4', + ], + 'shareDbAdapter' => [ + 'driver' => 'Pdo', + 'username' => 'sdm_dev', + 'password' => 'OTY5OGE1ZmRhYzdlODEw', + 'dsn' => 'mysql:dbname=sdm_dev;host=rm-8vb4w1p44yiv44yl5.mysql.zhangbei.rds.aliyuncs.com;port=3306;charset=utf8mb4', + ], +// 'dbAdapter' => [ +// 'driver' => 'Pdo', +// 'username' => 'sdm', +// 'password' => 'sdm_3306', +// 'dsn' => 'mysql:dbname=sdm_scitrials;host=localhost;port=3306;charset=utf8mb4', +//// 'dsn' => 'mysql:dbname=sdm_bjtt;host=localhost;port=3306;charset=utf8mb4', +//// 'dsn' => 'mysql:dbname=sdm_mc5;host=localhost;port=3306;charset=utf8mb4', +//// 'dsn' => 'mysql:dbname=sdm_pumch;host=localhost;port=3306;charset=utf8mb4', +// ], +// 'shareDbAdapter' => [ +// 'driver' => 'Pdo', +// 'username' => 'sdm', +// 'password' => 'sdm_3306', +// 'dsn' => 'mysql:dbname=sdm_scitrials;host=localhost;port=3306;charset=utf8mb4', +//// 'dsn' => 'mysql:dbname=sdm_bjtt;host=localhost;port=3306;charset=utf8mb4', +//// 'dsn' => 'mysql:dbname=sdm_mc5;host=localhost;port=3306;charset=utf8mb4', +//// 'dsn' => 'mysql:dbname=sdm_pumch;host=localhost;port=3306;charset=utf8mb4', +// ], + 'edcDbAdapter' => [ + 'driver' => 'Pdo', + 'username' => 'sdm', + 'password' => 'sdm_3306', + 'dsn' => 'mysql:dbname=edc_5mc;host=localhost;port=3306;charset=utf8mb4', + ], + 'queryDbAdapter' => [ + 'driver' => 'Pdo', + 'username' => 'sdm', + 'password' => 'sdm_3306', + 'dsn' => 'mysql:dbname=query;host=localhost;port=3306;charset=utf8mb4', + ], + 'logDbAdapter' => [] + ], + ], + 'caches' => [ + 'Redis' => [ + 'adapter' => [ + 'name' => Redis::class, + 'options' => [ + 'namespace' => 'Redis', + 'database' => 6, + 'password' => 'NmJhODdmN2RhYjliYzQ2', + 'server' => [ + 'host' => '127.0.0.1', + 'port' => 6379 + ] + ] + ] + ] + ] +]; diff --git a/config/autoload/http-domain.global.php b/config/autoload/http-domain.global.php new file mode 100644 index 0000000..6aed9ba --- /dev/null +++ b/config/autoload/http-domain.global.php @@ -0,0 +1,6 @@ + 'http://edc.kingdone.com' +]; diff --git a/config/autoload/local.php.dist b/config/autoload/local.php.dist new file mode 100644 index 0000000..bb7588c --- /dev/null +++ b/config/autoload/local.php.dist @@ -0,0 +1,15 @@ + [ + '非盲信息' , + ], + +]; diff --git a/config/autoload/oa.global.php b/config/autoload/oa.global.php new file mode 100644 index 0000000..40cb6e4 --- /dev/null +++ b/config/autoload/oa.global.php @@ -0,0 +1,22 @@ + [ + 'is_open' => false, //是否开启oa授权 + ], + 'oa' => [ + 'domain' => 'hjh.kingdone.com', + 'isHttps' => false, + 'appId' => 'oa-sdm', + 'secretKey' => 'SDMOARELATION', + 'redisNamespace' => 'oaSys', + 'redisTtl' => 1400, + 'signName' => 'OA' + ] +]; \ No newline at end of file diff --git a/config/autoload/response.global.php b/config/autoload/response.global.php new file mode 100644 index 0000000..9fa50df --- /dev/null +++ b/config/autoload/response.global.php @@ -0,0 +1,11 @@ + [ + 'header' => [ + 'X-XSS-Protection' => '1; mode=block', + 'X-Content-Type-Options' => 'nosniff', + 'Content-Security-Policy' => "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' https://* data: blob:; font-src 'self' data:;", + 'Set-Cookie' => true, + ] + ] + ]; \ No newline at end of file diff --git a/config/autoload/swoole.timer.global.php b/config/autoload/swoole.timer.global.php new file mode 100644 index 0000000..adfc8d5 --- /dev/null +++ b/config/autoload/swoole.timer.global.php @@ -0,0 +1,29 @@ + [ + // 每天定时扫描所有未识别的化验单图片,进行自动识别 + 'ocrImg' => [ + 'msec' => '86400000', // 时间(毫秒), + 'startTime' => date('Y-m-d 01:30:00', strtotime(' +1 day')), // 任务开始时间,不设置代表服务启动后,立即执行 + 'endTime' => '', // 任务结束时间,不设置则代表一直执行下去 + 'serviceName' => 'Patientchecktime', // 服务名称 + 'funName' => 'EditPatientChecktimeStatus' // 服务方法名称,暂时不知道传递参数 + ], + // 每天定时扫描所有正常受试者(非脱离/完成),更新受试者当前所处检查点 + 'scanPatientChecktime' => [ + 'msec' => '86400000', // 时间(毫秒), + 'startTime' => date('Y-m-d 00:30:00', strtotime(' +1 day')), // 任务开始时间,不设置代表服务启动后,立即执行 + 'endTime' => '', // 任务结束时间,不设置则代表一直执行下去 + 'serviceName' => 'Patientchecktime', // 服务名称 + 'funName' => 'AllPatient' // 服务方法名称,暂时不知道传递参数 + ] + ] + ]; \ No newline at end of file diff --git a/config/autoload/toolSys.global.php b/config/autoload/toolSys.global.php new file mode 100644 index 0000000..72add28 --- /dev/null +++ b/config/autoload/toolSys.global.php @@ -0,0 +1,19 @@ + [ + 'domain' => '', + 'appId' => '', + 'secretKey' => '', + 'redisNamespace' => 'toolSys', + 'redisTtl' => 60 * 60 * 24 - 60 * 5, + ] +]; \ No newline at end of file diff --git a/config/autoload/user.global.php b/config/autoload/user.global.php new file mode 100644 index 0000000..cbe14d5 --- /dev/null +++ b/config/autoload/user.global.php @@ -0,0 +1,33 @@ + [ + 'is_open' => 1, + 'default_token' => 'OGRhMGVkZDk1M2QzNjQ5ZmQ5MDQ0N2M5' + ], + 'swAsyncTask' => [ + 'log' => FALSE, + 'task' => FALSE, + ], + 'isOpenWechatWork' => false, + 'isShowItemType' => true, + 'logPath' => $_SERVER['DOCUMENT_ROOT'].'/../data/log/', + 'itemIdentificationResultPath' => $_SERVER['DOCUMENT_ROOT'].'/../data/itemIdentificationResult/', + 'formConfigPath' => $_SERVER['DOCUMENT_ROOT'].'/../formData/', + 'sendUrl' => 'https://esm.kingdone.com', + 'isSubmitItemForm' => [193], + 'sendMsgTmpId' => '', // 受试者消息提醒消息模板ID +]; diff --git a/config/autoload/zend-baidu.global.php b/config/autoload/zend-baidu.global.php new file mode 100644 index 0000000..b3c0a13 --- /dev/null +++ b/config/autoload/zend-baidu.global.php @@ -0,0 +1,9 @@ + [ + 'app_id' => '20421543', + 'api_key' => 'PwQwdbRR8F9ygzw1lo1jy87T', + 'aecret_key' => 'RCuvuhhMKjAH3oSTsDfnQ8k78XZEW5Bu' + ] +]; +?> \ No newline at end of file diff --git a/config/autoload/zend-itemrole.global.php b/config/autoload/zend-itemrole.global.php new file mode 100644 index 0000000..5142c86 --- /dev/null +++ b/config/autoload/zend-itemrole.global.php @@ -0,0 +1,12 @@ + [ + 'childSet' => [ + ['id'=>0,'title'=>'在施'], + ['id'=>1,'title'=>'暂停'], + ['id'=>2,'title'=>'完成'], + ], + ], +]; +?> diff --git a/config/development.config.php b/config/development.config.php new file mode 100644 index 0000000..baf122c --- /dev/null +++ b/config/development.config.php @@ -0,0 +1,15 @@ + [ + 'Laminas\DeveloperTools', + 'Laminas\ApiTools\Admin', + ], + // development time configuration globbing + 'module_listener_options' => [ + 'config_glob_paths' => [realpath(__DIR__) . '/autoload/{,*.}{global,local}-development.php'], + 'config_cache_enabled' => false, + 'module_map_cache_enabled' => false, + ], +]; diff --git a/config/development.config.php.dist b/config/development.config.php.dist new file mode 100644 index 0000000..baf122c --- /dev/null +++ b/config/development.config.php.dist @@ -0,0 +1,15 @@ + [ + 'Laminas\DeveloperTools', + 'Laminas\ApiTools\Admin', + ], + // development time configuration globbing + 'module_listener_options' => [ + 'config_glob_paths' => [realpath(__DIR__) . '/autoload/{,*.}{global,local}-development.php'], + 'config_cache_enabled' => false, + 'module_map_cache_enabled' => false, + ], +]; diff --git a/config/modules.config.old b/config/modules.config.old new file mode 100644 index 0000000..6047efb --- /dev/null +++ b/config/modules.config.old @@ -0,0 +1,32 @@ +