mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2025-09-18 01:36:40 +08:00
更新代码结构
This commit is contained in:
parent
6f6355e57f
commit
d92daaa1ae
3
.gitignore
vendored
3
.gitignore
vendored
@ -10,3 +10,6 @@ vendor/*
|
||||
!vendor/vendor.zip
|
||||
|
||||
runtime/*
|
||||
|
||||
app/*
|
||||
!app/controller/TestController.php
|
@ -20,8 +20,4 @@ class IndexController
|
||||
View::assign('domain', \request()->domain());
|
||||
return View::fetch();
|
||||
}
|
||||
public function test()
|
||||
{
|
||||
return View::fetch();
|
||||
}
|
||||
}
|
||||
|
@ -231,12 +231,12 @@ class PayController
|
||||
$Payclient = new $payclient_path($pay_config);
|
||||
// 获取支付明细
|
||||
$records = $Payclient->getOrderInfo($query);
|
||||
if ($records) {
|
||||
if ($records['code'] === 0) {
|
||||
// 提交收款记录
|
||||
$upres = $this->payHeart($records, $config);
|
||||
$upres = $this->payHeart($records['data'], $config);
|
||||
return $upres;
|
||||
} else {
|
||||
return json(['code' => 0, 'msg' => '查询空订单'], 320);
|
||||
return json(['code' => 0, 'msg' => $records['msg']], 320);
|
||||
}
|
||||
}
|
||||
// [定时任务]监听新订单,生成缓存
|
||||
|
@ -170,11 +170,11 @@ class PayManageController extends BaseController
|
||||
$Payclient = new $payclient_path($pay_config);
|
||||
// 获取支付明细
|
||||
$records = $Payclient->getOrderInfo($query);
|
||||
if ($records) {
|
||||
if ($records['code'] === 0) {
|
||||
// 收款流水
|
||||
return json(backMsg(0, '查询成功', $records));
|
||||
return json(backMsg(0, '查询成功', $records['data']));
|
||||
} else {
|
||||
return json(backMsg(1, '查询空订单'));
|
||||
return json(['code' => 1, 'msg' => $records['msg']]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user