zory 2 هفته پیش
والد
کامیت
b013eabdc6
1فایلهای تغییر یافته به همراه16 افزوده شده و 4 حذف شده
  1. 16 4
      app/controller/mini/Notify.php

+ 16 - 4
app/controller/mini/Notify.php

@@ -25,7 +25,10 @@ class Notify extends Base
             $param = $request->post();
             echo getDateFull()."==撤销核销通知==\n";
             print_r($param);
-            return success("ok");
+            return json([
+                "err_no"    => 0,
+                "err_tips"  => "success"
+            ]);
         } catch (\Throwable $throwable) {
             return error($throwable->getMessage());
         }
@@ -44,7 +47,10 @@ class Notify extends Base
             $param = $request->post();
             echo getDateFull()."==券核销通知==\n";
             print_r($param);
-            return success("ok");
+            return json([
+                "err_no"    => 0,
+                "err_tips"  => "success"
+            ]);
         } catch (\Throwable $throwable) {
             return error($throwable->getMessage());
         }
@@ -63,7 +69,10 @@ class Notify extends Base
             $param = $request->post();
             echo getDateFull()."==交易系统支付结果通知==\n";
             print_r($param);
-            return success("ok");
+            return json([
+                "err_no"    => 0,
+                "err_tips"  => "success"
+            ]);
         } catch (\Throwable $throwable) {
             return error($throwable->getMessage());
         }
@@ -81,7 +90,10 @@ class Notify extends Base
             $param = $request->post();
             echo getDateFull()."==交易系统退款通知==\n";
             print_r($param);
-            return success("ok");
+            return json([
+                "err_no"    => 0,
+                "err_tips"  => "success"
+            ]);
         } catch (\Throwable $throwable) {
             return error($throwable->getMessage());
         }