mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
no message
This commit is contained in:
parent
2e715004ae
commit
1829ac851d
@ -175,6 +175,8 @@ class AppsController extends AbstractController
|
||||
* @apiSuccess {Number} ret 返回状态码(1正确、0错误)
|
||||
* @apiSuccess {String} msg 返回信息(错误描述)
|
||||
* @apiSuccess {Object} data 返回数据
|
||||
* @apiSuccess {String} data.name 应用名称
|
||||
* @apiSuccess {Object} data.local 应用本地安装信息
|
||||
* @apiSuccess {String} data.log 日志内容
|
||||
*/
|
||||
public function logs()
|
||||
@ -209,6 +211,8 @@ class AppsController extends AbstractController
|
||||
$logContent = implode("\n", $output);
|
||||
|
||||
return Base::retSuccess('success', [
|
||||
'name' => $appName,
|
||||
'local' => Apps::getAppLocalInfo($appName),
|
||||
'log' => trim($logContent)
|
||||
]);
|
||||
}
|
||||
|
||||
@ -304,6 +304,11 @@ class Apps
|
||||
'required' => $field['required'] ?? false,
|
||||
];
|
||||
|
||||
// 处理默认值
|
||||
if ($normalizedField['type'] === 'number') {
|
||||
$normalizedField['default'] = intval($normalizedField['default']);
|
||||
}
|
||||
|
||||
// 处理 select 类型的选项
|
||||
if ($normalizedField['type'] === 'select' && isset($field['options']) && is_array($field['options'])) {
|
||||
$selectOptions = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user