mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2025-11-12 05:33:44 +08:00
修复一些小问题
This commit is contained in:
@@ -21,9 +21,7 @@ class IndexController
|
||||
}
|
||||
public function test()
|
||||
{
|
||||
$pay = new \payclient\PayClass(['username'=>1531,'password'=>15646]);
|
||||
|
||||
|
||||
return '123';
|
||||
$web = \request()->domain();
|
||||
return $web;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -195,11 +195,11 @@ class PayController
|
||||
foreach ($new_orders as $new_order) {
|
||||
foreach ($activeOrders as $order) {
|
||||
// 支付方式核对
|
||||
$is_payway = $order->type === $new_order['payway'];
|
||||
$is_payway = $order->type == $new_order['payway'];
|
||||
// 支付渠道核对
|
||||
$is_channel = $cids[$order->cid] === $new_order['channel'];
|
||||
$is_channel = $cids[$order->cid] == $new_order['channel'];
|
||||
// 金额核对
|
||||
$is_money = $order->money === $new_order['price'];
|
||||
$is_money = $order->money == $new_order['price'];
|
||||
// 订单核对
|
||||
if ($is_payway && $is_channel && $is_money) {
|
||||
$res = $this->updateOrderState($order, $new_order['order_no']);
|
||||
|
||||
@@ -13,6 +13,8 @@ class PayManageController extends BaseController
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$domain = $this->request->domain();
|
||||
View::assign('domain', $domain);
|
||||
return View::fetch();
|
||||
}
|
||||
// 编辑账号
|
||||
|
||||
@@ -5,8 +5,6 @@ declare(strict_types=1);
|
||||
namespace app\controller\api;
|
||||
|
||||
use app\BaseController;
|
||||
use app\model\Platform;
|
||||
use think\facade\View;
|
||||
|
||||
class PluginController extends BaseController
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user