diff --git a/README.md b/README.md
old mode 100755
new mode 100644
index cdb569da3..7e6412439
--- a/README.md
+++ b/README.md
@@ -41,6 +41,15 @@ ThinkPHP是一个快速、简单的基于MVC和面向对象的轻量级PHP开发
##### 轻量级,高性能
Amaze UI 面向 HTML5 开发,使用 CSS3 来做动画交互,平滑、高效,更适合移动设备,让 Web 应用更快速载入。
+# 小程序图片展示(微信、支付宝)
+
+
+# PC端图片展示
+
+
+# 后台管理图片展示
+
+
# 项目结构
```
shopxo
diff --git a/application/admin/config/app.php b/application/admin/config/app.php
index 3631d367c..977df45ed 100755
--- a/application/admin/config/app.php
+++ b/application/admin/config/app.php
@@ -59,7 +59,7 @@ return [
'imageUrlPrefix' => '',
// 上传保存路径,可以自定义保存路径和文件名格式
- 'imagePathFormat' => __MY_ROOT__.'static/upload/images/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
+ 'imagePathFormat' => __MY_ROOT_PUBLIC__.'static/upload/images/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
// 涂鸦图片上传配置项
@@ -70,7 +70,7 @@ return [
'scrawlFieldName' => 'upfile',
// 上传保存路径,可以自定义保存路径和文件名格式
- 'scrawlPathFormat' => __MY_ROOT__.'static/upload/images/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
+ 'scrawlPathFormat' => __MY_ROOT_PUBLIC__.'static/upload/images/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
// 上传大小限制,单位B
'scrawlMaxSize' => MyC('home_max_limit_image', 2048000, true),
@@ -87,7 +87,7 @@ return [
'snapscreenActionName' => 'uploadimage',
// 上传保存路径,可以自定义保存路径和文件名格式
- 'snapscreenPathFormat' => __MY_ROOT__.'static/upload/images/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
+ 'snapscreenPathFormat' => __MY_ROOT_PUBLIC__.'static/upload/images/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
// 图片访问路径前缀
'snapscreenUrlPrefix' => '',
@@ -107,7 +107,7 @@ return [
'catcherFieldName' => 'source',
// 上传保存路径,可以自定义保存路径和文件名格式
- 'catcherPathFormat' => __MY_ROOT__.'static/upload/images/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
+ 'catcherPathFormat' => __MY_ROOT_PUBLIC__.'static/upload/images/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
// 图片访问路径前缀
'catcherUrlPrefix' => '',
@@ -127,7 +127,7 @@ return [
'videoFieldName' => 'upfile',
// 上传保存路径,可以自定义保存路径和文件名格式
- 'videoPathFormat' => __MY_ROOT__.'static/upload/video/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
+ 'videoPathFormat' => __MY_ROOT_PUBLIC__.'static/upload/video/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
// 视频访问路径前缀
'videoUrlPrefix' => '',
@@ -147,7 +147,7 @@ return [
'fileFieldName' => 'upfile',
// 上传保存路径,可以自定义保存路径和文件名格式
- 'filePathFormat' => __MY_ROOT__.'static/upload/file/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
+ 'filePathFormat' => __MY_ROOT_PUBLIC__.'static/upload/file/'.input('path_type', 'other').'/{yyyy}/{mm}/{dd}/{time}{rand:6}',
// 文件访问路径前缀
'fileUrlPrefix' => '',
@@ -164,7 +164,7 @@ return [
'imageManagerActionName'=> 'listimage',
// 指定要列出图片的目录
- 'imageManagerListPath' => __MY_ROOT__.'static/upload/images/'.input('path_type', 'other').'/',
+ 'imageManagerListPath' => __MY_ROOT_PUBLIC__.'static/upload/images/'.input('path_type', 'other').'/',
// 每次列出文件数量
'imageManagerListSize' => 20,
@@ -184,7 +184,7 @@ return [
'fileManagerActionName' => 'listfile',
// 指定要列出文件的目录
- 'fileManagerListPath' => __MY_ROOT__.'static/upload/file/'.input('path_type', 'other').'/',
+ 'fileManagerListPath' => __MY_ROOT_PUBLIC__.'static/upload/file/'.input('path_type', 'other').'/',
// 文件访问路径前缀
'fileManagerUrlPrefix' => '',
@@ -199,7 +199,7 @@ return [
'videoManagerActionName' => 'listvideo',
// 指定要列出文件的目录
- 'videoManagerListPath' => __MY_ROOT__.'static/upload/video/'.input('path_type', 'other').'/',
+ 'videoManagerListPath' => __MY_ROOT_PUBLIC__.'static/upload/video/'.input('path_type', 'other').'/',
// 文件访问路径前缀
'videoManagerUrlPrefix' => '',
diff --git a/application/admin/controller/Appminialipaylist.php b/application/admin/controller/Appminialipaylist.php
index a15e40903..25c6296f4 100755
--- a/application/admin/controller/Appminialipaylist.php
+++ b/application/admin/controller/Appminialipaylist.php
@@ -76,7 +76,17 @@ class AppMiniAlipayList extends Common
$this->error('非法访问');
}
+ // 配置内容
+ $app_mini_title = MyC('common_app_mini_alipay_title');
+ $app_mini_describe = MyC('common_app_mini_alipay_describe');
+ if(empty($app_mini_title) || empty($app_mini_describe))
+ {
+ return DataReturn('配置信息不能为空', -1);
+ }
+
// 开始操作
+ $this->params['app_mini_title'] = $app_mini_title;
+ $this->params['app_mini_describe'] = $app_mini_describe;
return AppMiniService::Created($this->params);
}
diff --git a/application/admin/controller/Appminiweixinlist.php b/application/admin/controller/Appminiweixinlist.php
index 60ea42463..7abbd9983 100755
--- a/application/admin/controller/Appminiweixinlist.php
+++ b/application/admin/controller/Appminiweixinlist.php
@@ -76,7 +76,17 @@ class AppMiniWeixinList extends Common
$this->error('非法访问');
}
+ // 配置内容
+ $app_mini_title = MyC('common_app_mini_weixin_title');
+ $app_mini_describe = MyC('common_app_mini_weixin_describe');
+ if(empty($app_mini_title) || empty($app_mini_describe))
+ {
+ return DataReturn('配置信息不能为空', -1);
+ }
+
// 开始操作
+ $this->params['app_mini_title'] = $app_mini_title;
+ $this->params['app_mini_describe'] = $app_mini_describe;
return AppMiniService::Created($this->params);
}
diff --git a/application/admin/controller/Common.php b/application/admin/controller/Common.php
index fbe3b4dce..0729ed62d 100755
--- a/application/admin/controller/Common.php
+++ b/application/admin/controller/Common.php
@@ -75,7 +75,7 @@ class Common extends Controller
ConfigService::ConfigInit();
// url模式,后端采用兼容模式
- \think\facade\Url::root(__MY_ROOT__.'index.php?s=');
+ \think\facade\Url::root(__MY_ROOT_PUBLIC__.'index.php?s=');
}
/**
diff --git a/application/admin/controller/Ueditor.php b/application/admin/controller/Ueditor.php
index 028bc5339..40eab781d 100755
--- a/application/admin/controller/Ueditor.php
+++ b/application/admin/controller/Ueditor.php
@@ -130,7 +130,7 @@ class Ueditor extends Common
$path = input('path');
if(!empty($path))
{
- $path = (__MY_ROOT__ == '/') ? substr(ROOT_PATH, 0, -1).$path : str_replace(__MY_ROOT__, ROOT_PATH, $path);
+ $path = (__MY_ROOT_PUBLIC__ == '/') ? substr(ROOT_PATH, 0, -1).$path : str_replace(__MY_ROOT_PUBLIC__, ROOT_PATH, $path);
if(file_exists($path))
{
if(is_writable($path))
diff --git a/application/admin/view/default/navigation/index.html b/application/admin/view/default/navigation/index.html
index c338009b6..957c9b61b 100755
--- a/application/admin/view/default/navigation/index.html
+++ b/application/admin/view/default/navigation/index.html
@@ -142,7 +142,7 @@
{{foreach $article_list as $v}}