diff --git a/app/controller/IndexController.php b/app/controller/IndexController.php index ee4c2b6..d449a03 100644 --- a/app/controller/IndexController.php +++ b/app/controller/IndexController.php @@ -21,9 +21,7 @@ class IndexController } public function test() { - $pay = new \payclient\PayClass(['username'=>1531,'password'=>15646]); - - - return '123'; + $web = \request()->domain(); + return $web; } } diff --git a/app/controller/PayController.php b/app/controller/PayController.php index 40e31c8..a09e3d9 100644 --- a/app/controller/PayController.php +++ b/app/controller/PayController.php @@ -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']); diff --git a/app/controller/PayManageController.php b/app/controller/PayManageController.php index cce43a1..637adc2 100644 --- a/app/controller/PayManageController.php +++ b/app/controller/PayManageController.php @@ -13,6 +13,8 @@ class PayManageController extends BaseController { public function index() { + $domain = $this->request->domain(); + View::assign('domain', $domain); return View::fetch(); } // 编辑账号 diff --git a/app/controller/api/PluginController.php b/app/controller/api/PluginController.php index 2eecc79..6563622 100644 --- a/app/controller/api/PluginController.php +++ b/app/controller/api/PluginController.php @@ -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 { diff --git a/extend/MpayClass.php b/extend/MpayClass.php index a7bcf6e..dce8252 100644 --- a/extend/MpayClass.php +++ b/extend/MpayClass.php @@ -1,5 +1,7 @@ {{# return window.location.origin + '/checkPayResult?pid='+d.pid+'&aid='+d.id }}` }, + { title: '监听地址', field: 'payurl', align: 'center', templet: `