小程序源码下载位置调整

feat/task1-c-wallet
devil 2020-02-06 16:44:19 +08:00
parent e5d1b00676
commit 0731c763cb
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class AppMiniService
// 原包地址/操作地址
self::$old_root = ROOT.'sourcecode';
self::$new_root = ROOT.'public'.DS.'sourcecode';
self::$new_root = ROOT.'public'.DS.'download'.DS.'sourcecode';
self::$old_path = self::$old_root.DS.self::$application_name;
self::$new_path = self::$new_root.DS.self::$application_name;
}
@ -72,7 +72,7 @@ class AppMiniService
if($temp_file != '.' && $temp_file != '..')
{
$file_path = self::$new_path.DS.$temp_file;
$url = __MY_PUBLIC_URL__.'sourcecode'.DS.self::$application_name.DS.$temp_file;
$url = __MY_PUBLIC_URL__.'download'.DS.'sourcecode'.DS.self::$application_name.DS.$temp_file;
$result[] = [
'name' => $temp_file,
'url' => substr($url, -4) == '.zip' ? $url : '',