切换导航条
此项目
正在载入...
登录
何书鹏
/
recruit
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
Karson
7 years ago
提交
064e129342d71af00901056b97c4fb48ab4e2a3f
1 个父辈
f129e8af
修复API一键生成时ApiReturn的错误
修改默认Token驱动为Mysql 修复在系统配置中使用富文本编辑器的BUG
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
15 行增加
和
8 行删除
application/admin/command/Api/library/Extractor.php
application/admin/view/general/config/index.html
application/config.php
application/admin/command/Api/library/Extractor.php
查看文件 @
064e129
...
...
@@ -2,6 +2,8 @@
namespace
app\admin\command\Api\library
;
use
Exception
;
/**
* Class imported from https://github.com/eriknyk/Annotations
* @author Erik Amaru Ortiz https://github.com/eriknyk
...
...
@@ -329,11 +331,16 @@ class Extractor
{
$argsParts
=
trim
(
$matches
[
'args'
][
$i
]);
$name
=
$matches
[
'name'
][
$i
];
$argsParts
=
preg_replace
(
"/\{(\w+)\}/"
,
'#$1#'
,
$argsParts
);
$value
=
self
::
parseArgs
(
$argsParts
);
if
(
is_string
(
$value
))
if
(
$name
==
'ApiReturn'
)
{
$value
=
preg_replace
(
"/\#(\w+)\#/"
,
'{$1}'
,
$argsParts
);
$value
=
$argsParts
;
}
else
{
$argsParts
=
preg_replace
(
"/\{(\w+)\}/"
,
'#$1#'
,
$argsParts
);
$value
=
self
::
parseArgs
(
$argsParts
);
if
(
is_string
(
$value
))
{
$value
=
preg_replace
(
"/\#(\w+)\#/"
,
'{$1}'
,
$argsParts
);
}
}
}
else
...
...
application/admin/view/general/config/index.html
查看文件 @
064e129
...
...
@@ -51,7 +51,7 @@
<textarea
name=
"row[{$item.name}]"
class=
"form-control"
data-rule=
"{$item.rule}"
rows=
"5"
data-tip=
"{$item.tip}"
{$
item
.
extend
}
>
{$item.value}
</textarea>
{/case}
{case editor}
<textarea
name=
"row[{$item.name}]"
class=
"form-control editor"
data-rule=
"{$item.rule}"
rows=
"5"
data-tip=
"{$item.tip}"
{$
item
.
extend
}
>
{$item.value}
</textarea>
<textarea
name=
"row[{$item.name}]"
id=
"editor-{$item.name}"
class=
"form-control editor"
data-rule=
"{$item.rule}"
rows=
"5"
data-tip=
"{$item.tip}"
{$
item
.
extend
}
>
{$item.value}
</textarea>
{/case}
{case array}
<dl
class=
"fieldlist"
data-name=
"row[{$item.name}]"
>
...
...
@@ -176,8 +176,8 @@
<div
class=
"form-group hide"
id=
"add-content-container"
>
<label
for=
"content"
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Content')}:
</label>
<div
class=
"col-xs-12 col-sm-4"
>
<textarea
name=
"row[content]"
id=
"content"
cols=
"30"
rows=
"5"
class=
"form-control"
data-rule=
"required"
>
key1|value1
key2|value2
</textarea>
<textarea
name=
"row[content]"
id=
"content"
cols=
"30"
rows=
"5"
class=
"form-control"
data-rule=
"required"
>
value1|title1
value2|title2
</textarea>
</div>
</div>
<div
class=
"form-group"
>
...
...
application/config.php
查看文件 @
064e129
...
...
@@ -247,7 +247,7 @@ return [
// +----------------------------------------------------------------------
'token'
=>
[
// 驱动方式
'type'
=>
'
Redis
'
,
'type'
=>
'
Mysql
'
,
// 缓存前缀
'key'
=>
'i3d6o32wo8fvs1fvdpwens'
,
// 加密方式
...
...
请
注册
或
登录
后发表评论