File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
Extend/Engine/Cluster/DefaultApp Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 12
12
//更改模板替换变量,让普通能在所有平台下显示
13
13
'TMPL_PARSE_STRING ' =>array (
14
14
// __PUBLIC__/upload --> /Public/upload -->http://appname-public.stor.sinaapp.com/upload
15
- '/Public/upload ' =>file_url_root ('think-public ' ).'/upload '
15
+ '/Public/upload ' =>file_domain ('think-public ' ).'/upload '
16
16
)
17
17
);
Original file line number Diff line number Diff line change 12
12
//更改模板替换变量,让普通能在所有平台下显示
13
13
'TMPL_PARSE_STRING ' =>array (
14
14
// __PUBLIC__/upload --> /Public/upload -->http://appname-public.stor.sinaapp.com/upload
15
- '/Public/upload ' =>file_url_root ('Public ' ).'/upload '
15
+ '/Public/upload ' =>file_domain ('Public ' ).'/upload '
16
16
)
17
17
);
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ function file_delete($filename){
101
101
}
102
102
}
103
103
//获得文件的根地址
104
- function file_url_root ($ bucket ){
104
+ function file_domain ($ bucket ){
105
105
if (!IS_BAE ) return '' ;
106
106
return 'http:// ' .HTTP_BAE_ENV_ADDR_BCS .'/ ' .strtolower ($ bucket );
107
107
}
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ function file_delete($filename){
110
110
}
111
111
}
112
112
//一般在IO专用配置中使用
113
- function file_url_root ($ domain ='' ){
113
+ function file_domain ($ domain ='' ){
114
114
if (!IS_SAE ) return '' ;
115
115
$ s =new SaeStorage ();
116
116
return rtrim ($ s ->getUrl ($ domain ,'' ),'/ ' );
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ function file_delete($filename){
151
151
* @access public
152
152
* @return string
153
153
*/
154
- function file_url_root ($ domain ='' ){
154
+ function file_domain ($ domain ='' ){
155
155
return '' ;
156
156
}
157
157
You can’t perform that action at this time.
0 commit comments