feature/main20240421
lqmac 6 months ago
parent 63d6fa6dbf
commit 3867abb56f
  1. 1
      app/api/controller/Controller.php
  2. 7
      app/common/model/Goods.php

@ -60,6 +60,7 @@ class Controller extends BaseController
// throwError('很抱歉,您没有权限进入系统'); // throwError('很抱歉,您没有权限进入系统');
// } // }
// } // }
$this->getMerchantId(); $this->getMerchantId();
} }

@ -433,7 +433,11 @@ class Goods extends BaseModel
$filter[] = ['stock_total', '=', 0]; // 已售罄 $filter[] = ['stock_total', '=', 0]; // 已售罄
} }
} }
<<<<<<< Updated upstream
=======
>>>>>>> Stashed changes
if (isset($params['data_type']) && $params['data_type'] != "") { if (isset($params['data_type']) && $params['data_type'] != "") {
if ($params['data_type'] == 1) { if ($params['data_type'] == 1) {
$filter[] = ['data_type', '=', 1]; // 出售中 $filter[] = ['data_type', '=', 1]; // 出售中
@ -444,7 +448,10 @@ class Goods extends BaseModel
} }
} }
<<<<<<< Updated upstream
=======
>>>>>>> Stashed changes
// 商品状态 // 商品状态
$params['status'] > 0 && $filter[] = ['status', '=', (int)$params['status']]; $params['status'] > 0 && $filter[] = ['status', '=', (int)$params['status']];
$a = 1; $a = 1;

Loading…
Cancel
Save