dever 6 éve
szülő
commit
532432ce53
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      service/src/Buy.php

+ 4 - 0
service/src/Buy.php

@@ -121,6 +121,10 @@ class Buy extends Base
         $order_id = Dever::input('order_id');
         $order = Dever::db('journal/order')->one($order_id);
 
+        if ($order['uid'] != $this->user['id']) {
+            $this->location('list');
+        }
+
         $config['code_show'] = 'display:none;';
         $config['button'] = '继续购买';
         $config['button_node'] = '';