@@ -67,11 +67,8 @@ public function doIndex()
6767
6868
6969 $ config = require ($ sampleFileName );
70-
7170 $ sqliteName = "" ;
72-
7371 $ this ->lang = isset ($ _GET ['lang ' ]) ? $ _GET ['lang ' ] : "1 " ;
74-
7572 $ method = $ _SERVER ['REQUEST_METHOD ' ];
7673 if ($ method == 'POST ' ) {
7774 //install site
@@ -206,16 +203,15 @@ public function doIndex()
206203 $ curlResult = $ this ->curl ->request ($ testCurlUrl , 'get ' );
207204 $ doucmentRoot = isset ($ _SERVER ['DOCUMENT_ROOT ' ]) ? str_replace ("// " , "/ " , $ _SERVER ['DOCUMENT_ROOT ' ]) : "" ;
208205 $ scriptRoot = isset ($ _SERVER ['SCRIPT_FILENAME ' ]) ? str_replace ("// " , "/ " , $ _SERVER ['SCRIPT_FILENAME ' ]) : "" ;
209- $ isInstallRootPath = true ;
206+ $ doucmentUri = isset ( $ _SERVER [ ' DOCUMENT_URI ' ]) ? $ _SERVER [ ' DOCUMENT_URI ' ] : "" ;
210207
208+ $ isInstallRootPath = true ;
211209 if (!$ doucmentRoot || !$ scriptRoot ) {
212210 $ isInstallRootPath = false ;
213211 }
214-
215- if ($ doucmentRoot .DIRECTORY_SEPARATOR ."index.php " != $ scriptRoot ) {
212+ if ($ doucmentRoot .$ doucmentUri != $ scriptRoot ) {
216213 $ isInstallRootPath = false ;
217214 }
218-
219215 if ($ isInstallRootPath === false ) {
220216 echo $ this ->lang == 1 ? "目前只支持根目录运行 " : "Currently only the root directory is supported. " ;
221217 return ;
@@ -458,6 +454,30 @@ private function initPluginMiniProgram()
458454 'permissionType ' => Zaly \Proto \Core \PluginPermissionType::PluginPermissionAll,
459455 'authKey ' => "" ,
460456 ],
457+ [
458+ 'pluginId ' => 104 ,
459+ 'name ' => "gif小程序 " ,
460+ 'logo ' => "" ,
461+ 'sort ' => 2 , //order = 2
462+ 'landingPageUrl ' => "index.php?action=miniProgram.gif.index " ,
463+ 'landingPageWithProxy ' => 1 , //1 表示走site代理
464+ 'usageType ' => Zaly \Proto \Core \PluginUsageType::PluginUsageU2Message,
465+ 'loadingType ' => Zaly \Proto \Core \PluginLoadingType::PluginLoadingChatbox,
466+ 'permissionType ' => Zaly \Proto \Core \PluginPermissionType::PluginPermissionAll,
467+ 'authKey ' => "" ,
468+ ],
469+ [
470+ 'pluginId ' => 104 ,
471+ 'name ' => "gif小程序 " ,
472+ 'logo ' => "" ,
473+ 'sort ' => 2 , //order = 2
474+ 'landingPageUrl ' => "index.php?action=miniProgram.gif.index " ,
475+ 'landingPageWithProxy ' => 1 , //1 表示走site代理
476+ 'usageType ' => Zaly \Proto \Core \PluginUsageType::PluginUsageGroupMessage,
477+ 'loadingType ' => Zaly \Proto \Core \PluginLoadingType::PluginLoadingChatbox,
478+ 'permissionType ' => Zaly \Proto \Core \PluginPermissionType::PluginPermissionAll,
479+ 'authKey ' => "" ,
480+ ],
461481 [
462482 'pluginId ' => 105 ,
463483 'name ' => "账户密码管理 " ,
0 commit comments