|
|
@@ -20,6 +20,18 @@ class GoodsController extends BaseController
|
|
|
|
|
|
public $guestAccess = ['detail'];
|
|
|
|
|
|
+ public function actionSetSh()
|
|
|
+ {
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $id = $get['id'] ?? 0;
|
|
|
+ $info = GoodsClass::getById($id, true);
|
|
|
+ if (empty($info)) {
|
|
|
+ util::fail('没有找到商品');
|
|
|
+ }
|
|
|
+ GoodsClass::valid($info, $this->mainId);
|
|
|
+ util::complete();
|
|
|
+ }
|
|
|
+
|
|
|
//商品打印 ssh 20220602
|
|
|
public function actionPrint()
|
|
|
{
|