|
|
@@ -42,6 +42,17 @@ class ItemController extends BaseController
|
|
|
if ($num > $stock) {
|
|
|
util::fail('剩' . $stock . '可以挪动');
|
|
|
}
|
|
|
+ $shopId = $this->shopId;
|
|
|
+ $ext = ShopExtClass::getByCondition(['shopId' => $shopId], true);
|
|
|
+ $getItemId = $ext->losingItem ?? 0;
|
|
|
+ if (empty($getItemId)) {
|
|
|
+ util::fail('没有设置处理区花材');
|
|
|
+ }
|
|
|
+ $getItem = ItemClass::getById($getItemId, true);
|
|
|
+ if (empty($getItem)) {
|
|
|
+ util::fail('没有设置处理区花材哈');
|
|
|
+ }
|
|
|
+
|
|
|
util::complete('挪动成功');
|
|
|
}
|
|
|
|