first commit

This commit is contained in:
编码猿
2024-09-27 01:32:49 +08:00
commit 28ebe05a64
7399 changed files with 1174529 additions and 0 deletions

View File

@@ -0,0 +1 @@
256f6f02-17bc-418c-8cec-ae564214af0c

View File

@@ -0,0 +1,29 @@
<?php
return
[
//应用ID,您的APPID。
'app_id' => "2021001141623813",
//商户的seller_id
'seller_id' => "2088731840508262",
//商户私钥
'merchant_private_key' => "MIIEowIBAAKCAQEAkcL7XyT45LAVrapaTMh9jjwV8xvkykxpMI8wm8SZWcF+AMXiPM3LQEafnCy/+NNqjEw7ZnVmhEdjehy1HZBF28V2Iyo5hBefgi//DSskHsQrk2wHwJyj8vnMj21NsGfhwT0gTOhNbPNU4lPmYfPa6vEWQsjIGIiDlyO6F6y+jUuhSJXJLvvinShnjt7pVJLrcl6C/NFvNVwDIO7Eln4PURXi8d1N60gwmkicpR3rFnxrkiPkAC0YnRMp4QHeKF04tsyG61yT0JGEgkTTXcDqQCIeccEDmeJGjX8I3nRWj5djoZg/wmBN84msrDM5osPQ/zabOPkjAlNyA4gNmzwYawIDAQABAoIBAApxNH7pcCc58iOh25w6lLwW09+5tNdFSBfhejL+j5ndgcBebMm8WH4/UPnoPsx9oNlyMKMzb+e0EY1S9yqqBkcrSz5TrREofBXgiF4SJCFMHm8OQzPqRNiISr5Pr0we9Q5Z6bF4xusyN3eLWSrVRG6mXNjl92fCh+LQ/WjqyC/pCmAT3bp/7t8pwkKOtkSlDZI9iCgk+F65JSpN+vFS668dDoxsjae+TfJLsDnkVI9SW99D8XYnM4ACeoBo+8dO+bQrw7OvOW37xM5DCFy0PJ27AFv3wDZYcPpS0QZi+0Ym6R6OZ84prrkIW44oqdZFPmXp+ZBagE3qnsdiQ+STnVECgYEA0GBohOZfBFYOc6QzjKqnUminSWiNRbIgJY2XkqA0px7nB9RPW5aSSgTVe8IHeCvA87maOQANqzZA+9zZ2ZQcbwUrs0gbasZHJ1M1PQjYSexGLdLZT/lr65VnNlxyYJI6xb1E2XvjTtB4r1zRxQXxCnn8+JfbBvzUHhFoOq1JcBkCgYEAsxMhVgoJBxzPLKk9VnucMi+NG+9DbN57gOlECwOLRit9jjUarJNq8bqaFg8rQNOQKfLUVD6E3WMBXxiFyt/k6SW+Rxl4m2yzAtUaBbA1De1DCzsrvYuZBC0ofP/2a3xzuJWPvXxxR54gmz53Ni8O06cQxOiLEj0QRl5bMBGUjSMCgYADC8W7W5q7934Slq3iOoRjogAABLU79ZSet+klTY43ey4pYSMf1Z2h01xDiNyPFySk62ujtap9fDeK9vmAQrf/r3WqEz3DW86idobqs3xl6DxGYzSmBKFdOjveAY/ydXDCfzfIbhUui8GX3qV6WdHiM1JNV/rtqTh4kAyT/wB50QKBgQCbUmB7zECAVtCroC9/r7+PGAeAz0rgRylAaxOFqhFHT7mbexwjy8na2UuFDqspk1dbyy+30nJTw+gQn6iMix51yzL7YHBn/yRVtJjZjji2V7DrMOuDgG28XZ7crPcDy/Jji/YdGK74u4L0pH2qFa76jdHRuRHHRAe1wWm+i8EZmQKBgFEk7/W+A2/psm1SfL672SHJE4xjHm2wGMhrTInTntIWAR0AnwJ5AXCGZAOmIPm4ywoSjsiT4t22d6czllGguHQhEXeVGI2l1nzxVAH6ktuKh+HEkdlHCW2drCzXbV71sSWW8Ww1XxsK4rn/tIyDlBhlw69M2hqNgbQV2UNzsMGt",
'format' => 'json',
//异步通知地址
'notify_url' => \Env::get('api_url', 'https://api.ydyd51.com') .'/pay/aliPayCallback',
//编码格式
'charset' => "UTF-8",
//签名方式
'sign_type'=>"RSA2",
//支付宝网关
'gatewayUrl' => "https://openapi.alipay.com/gateway.do",
//支付宝公钥,查看地址https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
'alipay_public_key' => "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlMdEPpTrlEK5ZvJl2C8t609gp0eqjyj0bj8721SoI8Q19wG4MzGB8KkafxMGWBOADsUg6eQ1geaSePZubcKd8C8ihAAaCRgr4QWibbZq3dUjFrpvB2EvO1oYbBzdmPcxpeNWoWlk5WkBfhFeGmyZZ2rDZ09nClj9Y6iEAlAv6InHSO8EkFfgB/Jyd66cwGkohOLZaWgOXznh4OGwvXqVpNlVCpUSa+dSC3qfgc3U7Q6TZenvmvmWEBGdYgeP79JJiaEqPrqyXBxevSQm0YA9/r/dQbSlAG4AwdGi6c/BOATBsSvzpoP7ORV6+2jvqSyikfv35Vu0AMhu41ZqWCRHiwIDAQAB",
];

View File

@@ -0,0 +1,253 @@
<?php
//系统常量
return [
'ROLE_CERT_INFO' => [
'buyer'=>[
'name'=>'采购商',
//20200425修改为对应view一致的配置 dingchao
'sub_type'=>[
/*'clinic'=>[
'name'=>'诊所',
'certificate_list'=>[
'business_license'=>true,'medical_license'=>true,'purchase_identity'=>true,'authority_purchase'=>true,
],
'role_type'=>'buyer',
],*/
'purchasing_enterprise'=>[
'name'=>'商业公司',
'certificate_list'=>[
'business_license'=>true,'gsp_license'=>true,'trade_license'=>true,'purchase_identity'=>true,'authority_purchase'=>true,'peer_list'=>true,'year_report'=>false,
],
'role_type'=>'buyer',
],
'purchasing_chain_boss'=>[
'name'=>'连锁药房(总店)',
'certificate_list'=>[
'business_license'=>true,'gsp_license'=>true,'trade_license'=>true,'purchase_identity'=>true,'authority_purchase'=>true,'peer_list'=>true,'year_report'=>false,
],
'role_type'=>'buyer',
],
'liansuo_drugstore'=>[
'name'=>'连锁药房(分店)',
'certificate_list'=>[
'business_license'=>true,'gsp_license'=>true,'trade_license'=>true,'purchase_identity'=>true,'authority_purchase'=>true,
],
'role_type'=>'buyer',
],
'drugstore'=>[
'name'=>'单体药房',
'certificate_list'=>[
'business_license'=>true,'gsp_license'=>true,'trade_license'=>true,'purchase_identity'=>true,'authority_purchase'=>true,
],
'role_type'=>'buyer',
],
'clinic_single'=>[
'name'=>'单体诊所',
'certificate_list'=>[
'business_license'=>true,'medical_license'=>true,'purchase_identity'=>true,'authority_purchase'=>true,
],
'role_type'=>'buyer',
],
'clinic_door'=>[
'name'=>'门诊',
'certificate_list'=>[
'business_license'=>true,'medical_license'=>true,'purchase_identity'=>true,'authority_purchase'=>true,
],
'role_type'=>'buyer',
],
'clinic_community'=>[
'name'=>'社区卫生服务所',
'certificate_list'=>[
'business_license'=>true,'medical_license'=>true,'purchase_identity'=>true,'authority_purchase'=>true,
],
'role_type'=>'buyer',
],
/*'hospital'=>[
'name'=>'医院',
'certificate_list'=>[
'business_license'=>false,'medical_license'=>true,'authority_purchase'=>true,'purchase_identity'=>true,
],
'role_type'=>'buyer',
],*/
'hospital_private'=>[
'name'=>'私立医院',
'certificate_list'=>[
'business_license'=>false,'medical_license'=>true,'authority_purchase'=>true,'purchase_identity'=>true,
],
'role_type'=>'buyer',
],
/*'hospital_public'=>[
'name'=>'公立医院',
'certificate_list'=>[
'business_license'=>false,'medical_license'=>true,'authority_purchase'=>true,'purchase_identity'=>true,
],
'role_type'=>'buyer',
],*/
/* 'liansuo_drugstore'=>[
'name'=>'连锁药房',
'certificate_list'=>[
'business_license'=>true,'gsp_license'=>true,'trade_license'=>true,'purchase_identity'=>true,'authority_purchase'=>true,
],
'role_type'=>'buyer',
],*/
/*'purchasing_enterprise'=>[
'name'=>'医药采购企业',
'certificate_list'=>[
'business_license'=>true,'gsp_license'=>true,'trade_license'=>true,'purchase_identity'=>true,'authority_purchase'=>true,'peer_list'=>true,'year_report'=>false,
],
'role_type'=>'buyer',
],*/
'manufacturer'=>[
'name'=>'医药生产企业',
'certificate_list'=>[
'business_license'=>true,'make_license'=>true,'trade_license'=>true,'gmp_license'=>true,'peer_list'=>true,'principal_identity'=>true,'sales_commission'=>true,'quality_agreement'=>true,'year_report'=>false,
],
'role_type'=>'supplier',
],
'supply_enterprise'=>[
'name'=>'医药供应企业',
'certificate_list'=>[
'business_license'=>true,'gsp_license'=>true,'trade_license'=>true,'principal_identity'=>true,'sales_commission'=>true,'peer_list'=>true,'quality_agreement'=>true,'year_report'=>false,
],
'role_type'=>'supplier',
],
'agency_business'=>[
'name'=>'医药代理企业',
'certificate_list'=>[
'business_license'=>true,'gsp_license'=>true,'trade_license'=>true,'principal_identity'=>true,'sales_commission'=>true,'peer_list'=>true,'quality_agreement'=>true,'acting_prove'=>true,'year_report'=>false
],
'role_type'=>'agent',
],
],
/*'sub_type'=>[
'clinic'=>[
'name'=>'诊所',
'certificate_list'=>[
'business_license'=>true,'medical_license'=>true,'purchase_identity'=>true,'authority_purchase'=>true,'tax_regcate'=>true,
],
'role_type'=>'buyer',
],
'hospital'=>[
'name'=>'医院',
'certificate_list'=>[
'business_license'=>false,'medical_license'=>true,'authority_purchase'=>true,'purchase_identity'=>true,
],
'role_type'=>'buyer',
],
'drugstore'=>[
'name'=>'单体药房',
'certificate_list'=>[
'business_license'=>true,'gsp_license'=>true,'trade_license'=>true,'purchase_identity'=>true,'authority_purchase'=>true,'tax_regcate'=>true,
],
'role_type'=>'buyer',
],
'liansuo_drugstore'=>[
'name'=>'连锁药房',
'certificate_list'=>[
'business_license'=>true,'gsp_license'=>true,'trade_license'=>true,'purchase_identity'=>true,'authority_purchase'=>true,'tax_regcate'=>true,
],
'role_type'=>'buyer',
],
'purchasing_enterprise'=>[
'name'=>'医药采购企业',
'certificate_list'=>[
'business_license'=>true,'gsp_license'=>true,'trade_license'=>true,'purchase_identity'=>true,'authority_purchase'=>true,'tax_regcate'=>true,'peer_list'=>true,'year_report'=>false,
],
'role_type'=>'buyer',
],
'manufacturer'=>[
'name'=>'医药生产企业',
'certificate_list'=>[
'business_license'=>true,'make_license'=>true,'trade_license'=>true,'gmp_license'=>true,'tax_regcate'=>true,'peer_list'=>true,'principal_identity'=>true,'sales_commission'=>true,'quality_agreement'=>true,'year_report'=>false,
],
'role_type'=>'supplier',
],
'supply_enterprise'=>[
'name'=>'医药供应企业',
'certificate_list'=>[
'business_license'=>true,'gsp_license'=>true,'trade_license'=>true,'principal_identity'=>true,'sales_commission'=>true,'tax_regcate'=>true,'peer_list'=>true,'quality_agreement'=>true,'year_report'=>false,
],
'role_type'=>'supplier',
],
'agency_business'=>[
'name'=>'医药代理企业',
'certificate_list'=>[
'business_license'=>true,'gsp_license'=>true,'trade_license'=>true,'principal_identity'=>true,'sales_commission'=>true,'tax_regcate'=>true,'peer_list'=>true,'quality_agreement'=>true,'acting_prove'=>true,'year_report'=>false
],
'role_type'=>'agent',
],
],*/
],
/*'buyer'=>[
'name'=>'采购商',
'sub_type'=>[
'drugstore'=>[
'name'=>'药房/医药公司(零售/批发)',
'certificate_list'=>[
'business_license'=>true,'year_report'=>true,'trade_license'=>true,'gsp_license'=>true,'authority_purchase'=>true,'authority_receive'=>true,
],
],
'hospital'=>[
'name'=>'诊所/医院(医疗机构)',
'certificate_list'=>[
'business_license'=>false,'medical_license'=>true,'authority_purchase'=>true,'authority_receive'=>true,
],
],
'manufacturer'=>[
'name'=>'厂商(生产企业)',
'certificate_list'=>[
'business_license'=>true,'year_report'=>true,'make_license'=>true,'gmp_license'=>true,'authority_purchase'=>true,'authority_receive'=>true,
],
],
],
],*/
'supplier'=>[
'name'=>'药企',
'sub_type'=>[
/*[
'name'=>'厂家',
'certificate_list'=>[
'nid','nid2','nid3'
],
],*/
/*[
'name'=>'医药公司',
'certificate_list'=>[
'nid','nid2','nid3'
],
],*/
'supplier'=>[
'name'=>'药企',
'certificate_list'=>[
'business_license'=>true,'year_report'=>true,'trade_license'=>true,'gsp_license'=>true,'authority_purchase'=>true,'authority_receive'=>true,
],
],
],
],
'agent'=>[
'name'=>'代理商',
'sub_type'=>[
'agent'=>[
'name'=>'代理商',
'certificate_list'=>[
'business_license'=>true,'year_report'=>true,'trade_license'=>true,'gsp_license'=>true,'authority_purchase'=>true,'authority_receive'=>true,
],
],
/*[
'name'=>'企业',
'certificate_list'=>[
'nid','nid2','nid3'
],
],
[
'name'=>'个人',
'certificate_list'=>[
'nid','nid2','nid3'
],
],*/
],
],
],
];

View File

@@ -0,0 +1,30 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | 日志设置
// +----------------------------------------------------------------------
return [
// 日志记录方式,内置 file socket 支持扩展
'type' => 'File',
// 日志保存目录
'path' => '',
// 日志记录级别
'level' => [],
// 单文件日志写入
'single' => false,
// 独立日志级别
'apart_level' => [],
// 最大日志文件数量
'max_files' => 0,
// 是否关闭日志写入
'close' => false,
];

View File

@@ -0,0 +1,18 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | 中间件配置
// +----------------------------------------------------------------------
return [
// 默认中间件命名空间
'default_namespace' => 'app\\http\\middleware\\',
];

View File

@@ -0,0 +1,5 @@
<?php
return [
'swoole_class' => 'app\http\Swoole',
];

View File

@@ -0,0 +1,35 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | 模板设置
// +----------------------------------------------------------------------
return [
// 模板引擎类型 支持 php think 支持扩展
'type' => 'Think',
// 默认模板渲染规则 1 解析为小写+下划线 2 全部转换小写 3 保持操作方法
'auto_rule' => 1,
// 模板路径
'view_path' => '',
// 模板后缀
'view_suffix' => 'html',
// 模板文件名分隔符
'view_depr' => DIRECTORY_SEPARATOR,
// 模板引擎普通标签开始标记
'tpl_begin' => '{',
// 模板引擎普通标签结束标记
'tpl_end' => '}',
// 标签库标签开始标记
'taglib_begin' => '{',
// 标签库标签结束标记
'taglib_end' => '}',
];

View File

@@ -0,0 +1,18 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | Trace设置 开启 app_trace 后 有效
// +----------------------------------------------------------------------
return [
// 内置Html Console 支持扩展
'type' => 'Html',
];

View File

@@ -0,0 +1,11 @@
<?php
return [
'WXAPPID' => 'wx3c1cd02ba56f1ac1',
'WXMCHID' => '1579496421',
'WXKEY' => 'b2771197156b7d65ab276efeea4454c6',
'WXAPPSECRET' => 'eb277ede89e3e6345880afed0feb583a',
//异步通知地址
'NOTIFYURL' => \Env::get('api_url', 'https://api.ydyd51.com') . '/pay/wxPayCallback',
'SIGNTYPE' => 'HMAC-SHA256',
];