定时任务提交

This commit is contained in:
Ghost
2025-03-24 16:42:36 +08:00
parent af2006f13e
commit 2df22cdecd
32 changed files with 1091 additions and 94 deletions

View File

@@ -104,7 +104,7 @@ if (!function_exists('setHeader')) {
if (!function_exists('errorJson')) {
function errorJson($error = '', $code = 500)
{
return json([
return json_encode([
'code' => $code,
'msg' => $error,
]);
@@ -115,7 +115,7 @@ if (!function_exists('errorJson')) {
if (!function_exists('successJson')) {
function successJson($data = [] ,$msg = '操作成功', $code = 200)
{
return json([
return json_encode([
'data' => $data,
'code' => $code,
'msg' => $msg,