更新代码结构

This commit is contained in:
技术老胡 2025-02-21 18:53:21 +08:00
parent 6f6355e57f
commit d92daaa1ae
4 changed files with 10 additions and 11 deletions

5
.gitignore vendored
View File

@ -9,4 +9,7 @@ extend/*
vendor/* vendor/*
!vendor/vendor.zip !vendor/vendor.zip
runtime/* runtime/*
app/*
!app/controller/TestController.php

View File

@ -20,8 +20,4 @@ class IndexController
View::assign('domain', \request()->domain()); View::assign('domain', \request()->domain());
return View::fetch(); return View::fetch();
} }
public function test()
{
return View::fetch();
}
} }

View File

@ -231,12 +231,12 @@ class PayController
$Payclient = new $payclient_path($pay_config); $Payclient = new $payclient_path($pay_config);
// 获取支付明细 // 获取支付明细
$records = $Payclient->getOrderInfo($query); $records = $Payclient->getOrderInfo($query);
if ($records) { if ($records['code'] === 0) {
// 提交收款记录 // 提交收款记录
$upres = $this->payHeart($records, $config); $upres = $this->payHeart($records['data'], $config);
return $upres; return $upres;
} else { } else {
return json(['code' => 0, 'msg' => '查询空订单'], 320); return json(['code' => 0, 'msg' => $records['msg']], 320);
} }
} }
// [定时任务]监听新订单,生成缓存 // [定时任务]监听新订单,生成缓存

View File

@ -170,11 +170,11 @@ class PayManageController extends BaseController
$Payclient = new $payclient_path($pay_config); $Payclient = new $payclient_path($pay_config);
// 获取支付明细 // 获取支付明细
$records = $Payclient->getOrderInfo($query); $records = $Payclient->getOrderInfo($query);
if ($records) { if ($records['code'] === 0) {
// 收款流水 // 收款流水
return json(backMsg(0, '查询成功', $records)); return json(backMsg(0, '查询成功', $records['data']));
} else { } else {
return json(backMsg(1, '查询空订单')); return json(['code' => 1, 'msg' => $records['msg']]);
} }
} }
} }