|
|
@@ -29,6 +29,19 @@ class ProductController extends BaseController
|
|
|
|
|
|
public $guestAccess = ['index'];
|
|
|
|
|
|
+ //修改路上库存 ssh 20231219
|
|
|
+ public function actionModifyOnStock()
|
|
|
+ {
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $id = $get['id'] ?? 0;
|
|
|
+ $onStock = $get['onStock'] ?? 0;
|
|
|
+ $info = ProductClass::getById($id, true);
|
|
|
+ ProductClass::check($info, $this->mainId);
|
|
|
+ $info->onStock = $onStock;
|
|
|
+ $info->save();
|
|
|
+ util::complete('修改成功');
|
|
|
+ }
|
|
|
+
|
|
|
//停止预售 ssh 20230224
|
|
|
public function actionCancelPreSell()
|
|
|
{
|