Browse Source

完善功能

gorden 10 months ago
parent
commit
1b9cd3875f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/admin/controller/notify/RechargeController.php
  2. 1 1
      route/admin.php

+ 1 - 1
app/admin/controller/notify/RechargeController.php

@@ -25,7 +25,7 @@ class RechargeController
         $payDetails = PayDetail::where('pay_category', 'RECHARGE')
             ->where('pay_status', 'SUCCESS')
             ->where(function ($query) {
-                $query->whereNull('pay_extend_json')
+                $query->whereRaw("JSON_EXTRACT(`pay_extend_json`, '$.notify') IS NULL")
                     ->orWhereJsonDoesntContain('pay_extend_json->notify', 'success');
             })
             ->get()

+ 1 - 1
route/admin.php

@@ -827,5 +827,5 @@ Route::group('/admin', function () {
 
 
 Route::group('/notify', function () {
-    Route::post('/recharge/paySuccess', [\app\admin\controller\notify\RechargeController::class, 'paySuccess']);
+    Route::post('/recharge/paySuccess', [\app\admin\controller\notify\RechargeController::class, 'disposePaySuccess']);
 });