|
|
@@ -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;
|