zhangdehua 10 tháng trước cách đây
mục cha
commit
726ffd3eb1

+ 6 - 0
app/index/controller/Checkout.php

@@ -285,4 +285,10 @@ class Checkout extends Controller
     {
         return array_merge($define, $this->request->param());
     }
+
+    public function goldTest()
+    {
+        return view('paySuccessful', ['notice' => 'Payment Successful']);
+
+    }
 }

+ 9 - 2
app/index/view/checkout/paySuccessful.html

@@ -23,13 +23,20 @@
     <div class="container">
       <i class="icon">&#10004;</i>
       <h1>{$notice}</h1>
-      <p>Thank you for your payment, the order will be processed later.</p>
-      <a href="/index/index/index.html" class="btn">Return to store</a>
+      <p>Thank you for your payment, the order will be processed later.Returning to the store.</p>
+      <a href="/index/index/index.html" class="btn">Return to store right now</a>
     </div>
   </section>
 </body>
 <script src="/assets/index/js/jquery-1.12.0.js"></script>
 <script src="/assets/index/js/flexible.js"></script>
 <script src="/assets/index/js/public.js?t=11"></script>
+<script>
+  window.window.onload=function(){
+    setTimeout(function (){
+      window.location.replace('/index/index/index.html');
+    },5000)
+  }
+</script>
 
 </html>