diff --git a/crmeb/crmeb/utils/Template.php b/crmeb/crmeb/utils/Template.php index c95fb682..c8ed1146 100644 --- a/crmeb/crmeb/utils/Template.php +++ b/crmeb/crmeb/utils/Template.php @@ -44,15 +44,15 @@ class Template * @var array 'defaultData'=>[[],'array'] 生成的方法为 setDefaultData(array $value) */ protected $propsRule = [ - 'defaultData' => '', - 'templateCode' => [null,'string'], + 'defaultData' => [null, 'string'], + 'templateCode' => [null, 'string'], 'templateData' => [[],'array'], - 'templateUrl' => [null,'callable','postpositionUrl'], - 'templateFormId' => [null,'string'], - 'sendType' => [null,'string'], - 'templateOpenId' => [null,'string'], - 'templateOpenId' => [null,'string'], - 'templateDefaultColor' => [null,'string'], + 'templateUrl' => [null, 'callable', 'postpositionUrl'], + 'templateFormId' => [null, 'string'], + 'sendType' => [null, 'string'], + 'templateOpenId' => [null, 'string'], + 'templateOpenId' => [null, 'string'], + 'templateDefaultColor' => [null, 'string'], ]; /** diff --git a/crmeb/public/nginx.htaccess b/crmeb/public/nginx.htaccess new file mode 100644 index 00000000..c6d74018 --- /dev/null +++ b/crmeb/public/nginx.htaccess @@ -0,0 +1,6 @@ +location / { + if (!-e $request_filename) { + rewrite ^(.*)$ /index.php?s=/$1 last; + break; + } + } \ No newline at end of file