Browse Source

update: payment

tokumeikoi 3 years ago
parent
commit
84583bd384

+ 5 - 1
app/Http/Controllers/Admin/PaymentController.php

@@ -22,8 +22,12 @@ class PaymentController extends Controller
 
     public function fetch()
     {
+        $payments = Payment::all();
+        foreach ($payments as $k => $v) {
+            $payments[$k]['notify_url'] = url("/api/v1/guest/payment/notify/{$v->payment}/{$v->id}");
+        }
         return response([
-            'data' => Payment::all()
+            'data' => $payments
         ]);
     }
 

File diff suppressed because it is too large
+ 0 - 0
public/assets/admin/components.chunk.css


File diff suppressed because it is too large
+ 0 - 0
public/assets/admin/umi.js


Some files were not shown because too many files changed in this diff