修复一些小问题

This commit is contained in:
技术老胡
2024-11-11 15:58:19 +08:00
parent cd38b4cc04
commit 4b5e8bb763
7 changed files with 23 additions and 12 deletions

View File

@@ -21,9 +21,7 @@ class IndexController
}
public function test()
{
$pay = new \payclient\PayClass(['username'=>1531,'password'=>15646]);
return '123';
$web = \request()->domain();
return $web;
}
}

View File

@@ -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']);

View File

@@ -13,6 +13,8 @@ class PayManageController extends BaseController
{
public function index()
{
$domain = $this->request->domain();
View::assign('domain', $domain);
return View::fetch();
}
// 编辑账号

View File

@@ -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
{