|
@@ -22,6 +22,22 @@ use Yii;
|
|
|
class ItemController extends BaseController
|
|
class ItemController extends BaseController
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
|
|
+ //花材已购客户列表 ssh 20250710
|
|
|
|
|
+ public function actionHasLimitBuyCustomList()
|
|
|
|
|
+ {
|
|
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
|
|
+ $id = $get['id'] ?? '';
|
|
|
|
|
+ $item = ItemClass::getById($id, true);
|
|
|
|
|
+ if (empty($item)) {
|
|
|
|
|
+ util::fail('没有找到花材');
|
|
|
|
|
+ }
|
|
|
|
|
+ if ($item->mainId != $this->mainId) {
|
|
|
|
|
+ util::fail('不是你的花材');
|
|
|
|
|
+ }
|
|
|
|
|
+ $customList = ProductClass::getHasLimitBuyList($item);
|
|
|
|
|
+ util::success(['customList' => $customList]);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
//取消花材的限购,重新开始计算
|
|
//取消花材的限购,重新开始计算
|
|
|
public function actionClearLimitBuy()
|
|
public function actionClearLimitBuy()
|
|
|
{
|
|
{
|
|
@@ -980,7 +996,7 @@ class ItemController extends BaseController
|
|
|
$productList = [];
|
|
$productList = [];
|
|
|
if (!empty($list)) {
|
|
if (!empty($list)) {
|
|
|
foreach ($list as $key => $item) {
|
|
foreach ($list as $key => $item) {
|
|
|
- if(!empty($item)){
|
|
|
|
|
|
|
+ if (!empty($item)) {
|
|
|
$productList = array_merge($productList, $item);
|
|
$productList = array_merge($productList, $item);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|