Browse Source

新增notice目录

萤火科技 1 year ago
parent
commit
a403ca5e90

+ 2 - 2
app/common/library/payment/gateway/driver/Alipay.php

@@ -323,7 +323,7 @@ class Alipay extends Driver
      */
     private function notifyUrl(): string
     {
-        // 例如:https://www.xxxx.com/alipayNotice.php
-        return base_url() . 'alipayNotice.php';
+        // 例如:https://www.xxxx.com/alipay.php
+        return base_url() . 'notice/alipay.php';
     }
 }

+ 2 - 2
app/common/library/payment/gateway/driver/wechat/V2.php

@@ -410,8 +410,8 @@ class V2
      */
     private function notifyUrl(): string
     {
-        // 例如:https://www.xxxx.com/wxpayNoticeV2.php
-        return base_url() . 'wxpayNoticeV2.php';
+        // 例如:https://www.xxxx.com/wxpayV2.php
+        return base_url() . 'notice/wxpayV2.php';
     }
 
     /**

+ 2 - 2
app/common/library/payment/gateway/driver/wechat/V3.php

@@ -535,8 +535,8 @@ class V3
      */
     private function notifyUrl(): string
     {
-        // 例如:https://www.xxxx.com/wxpayNoticeV3.php
-        return base_url() . 'wxpayNoticeV3.php';
+        // 例如:https://www.xxxx.com/wxpayV3.php
+        return base_url() . 'notice/wxpayV3.php';
     }
 
     /**

+ 0 - 0
public/alipayNotice.php → public/notice/alipay.php


+ 0 - 0
public/wxpayNoticeV2.php → public/notice/wxpayV2.php


+ 0 - 0
public/wxpayNoticeV3.php → public/notice/wxpayV3.php


+ 0 - 19
public/router.php

@@ -1,19 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | ThinkPHP [ WE CAN DO IT JUST THINK ]
-// +----------------------------------------------------------------------
-// | Copyright (c) 2006~2019 http://thinkphp.cn All rights reserved.
-// +----------------------------------------------------------------------
-// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
-// +----------------------------------------------------------------------
-// | Author: liu21st <liu21st@gmail.com>
-// +----------------------------------------------------------------------
-// $Id$
-
-if (is_file($_SERVER["DOCUMENT_ROOT"] . $_SERVER["SCRIPT_NAME"])) {
-    return false;
-} else {
-    $_SERVER["SCRIPT_FILENAME"] = __DIR__ . '/index.php';
-
-    require __DIR__ . "/index.php";
-}

+ 0 - 0
数据库修改记录/此处sql文件仅做记录,安装时用不到.txt