Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
starsw001
ShopXO
提交
6fae1bd0
ShopXO
项目概览
starsw001
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6fae1bd0
编写于
2月 20, 2019
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
字符串输入处理
上级
e0222e2b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
4 deletion
+13
-4
application/service/ArticleService.php
application/service/ArticleService.php
+4
-1
application/service/CustomViewService.php
application/service/CustomViewService.php
+4
-1
application/service/GoodsService.php
application/service/GoodsService.php
+4
-1
config/app.php
config/app.php
+1
-1
未找到文件。
application/service/ArticleService.php
浏览文件 @
6fae1bd0
...
...
@@ -184,8 +184,11 @@ class ArticleService
return
DataReturn
(
$ret
,
-
1
);
}
// 编辑器内容
$content
=
isset
(
$_POST
[
'content'
])
?
$_POST
[
'content'
]
:
''
;
// 数据
$content
=
ResourcesService
::
ContentStaticReplace
(
$
params
[
'content'
]
,
'add'
);
$content
=
ResourcesService
::
ContentStaticReplace
(
$
content
,
'add'
);
$image
=
self
::
MatchContentImage
(
$content
);
$data
=
[
'title'
=>
$params
[
'title'
],
...
...
application/service/CustomViewService.php
浏览文件 @
6fae1bd0
...
...
@@ -190,8 +190,11 @@ class CustomViewService
return
DataReturn
(
$ret
,
-
1
);
}
// 编辑器内容
$content
=
isset
(
$_POST
[
'content'
])
?
$_POST
[
'content'
]
:
''
;
// 数据
$content
=
ResourcesService
::
ContentStaticReplace
(
$
params
[
'content'
]
,
'add'
);
$content
=
ResourcesService
::
ContentStaticReplace
(
$
content
,
'add'
);
$image
=
self
::
MatchContentImage
(
$content
);
$data
=
[
'title'
=>
$params
[
'title'
],
...
...
application/service/GoodsService.php
浏览文件 @
6fae1bd0
...
...
@@ -955,6 +955,9 @@ class GoodsService
return
$attachment
;
}
// 编辑器内容
$content_web
=
isset
(
$_POST
[
'content_web'
])
?
$_POST
[
'content_web'
]
:
''
;
// 基础数据
$data
=
[
'title'
=>
$params
[
'title'
],
...
...
@@ -967,7 +970,7 @@ class GoodsService
'buy_max_number'
=>
isset
(
$params
[
'buy_max_number'
])
?
intval
(
$params
[
'buy_max_number'
])
:
0
,
'is_deduction_inventory'
=>
isset
(
$params
[
'is_deduction_inventory'
])
?
intval
(
$params
[
'is_deduction_inventory'
])
:
0
,
'is_shelves'
=>
isset
(
$params
[
'is_shelves'
])
?
intval
(
$params
[
'is_shelves'
])
:
0
,
'content_web'
=>
ResourcesService
::
ContentStaticReplace
(
$
params
[
'content_web'
]
,
'add'
),
'content_web'
=>
ResourcesService
::
ContentStaticReplace
(
$
content_web
,
'add'
),
'images'
=>
isset
(
$photo
[
'data'
][
0
])
?
$photo
[
'data'
][
0
]
:
''
,
'photo_count'
=>
count
(
$photo
[
'data'
]),
'is_home_recommended'
=>
isset
(
$params
[
'is_home_recommended'
])
?
intval
(
$params
[
'is_home_recommended'
])
:
0
,
...
...
config/app.php
浏览文件 @
6fae1bd0
...
...
@@ -41,7 +41,7 @@ return [
// 是否开启多语言
'lang_switch_on'
=>
false
,
// 默认全局过滤方法 用逗号分隔多个
'default_filter'
=>
''
,
'default_filter'
=>
'
htmlspecialchars
'
,
// 默认语言
'default_lang'
=>
'zh-cn'
,
// 应用类库后缀
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录