shish 1 an în urmă
părinte
comite
d73a2d7098
1 a modificat fișierele cu 1 adăugiri și 4 ștergeri
  1. 1 4
      app-mall/controllers/OrderController.php

+ 1 - 4
app-mall/controllers/OrderController.php

@@ -34,15 +34,12 @@ class OrderController extends BaseController
         $get = Yii::$app->request->get();
         $id = $get['id'] ?? 0;
         $where = [];
-        $where['mainId'] = $this->mainId;
+        $where['userId'] = $this->userId;
         if (!empty($id)) {
             $hd = \bizMall\hd\classes\HdClass::getById($id, true);
             if (empty($hd)) {
                 util::fail('无效的花店');
             }
-            if ($hd->userId != $this->userId) {
-                util::fail('不是你的店铺');
-            }
             $where['hdId'] = $id;
         }
         $where['debt'] = 1;