|
@@ -15,6 +15,7 @@ use bizGhs\merchant\classes\ShopClass;
|
|
|
use bizGhs\product\classes\ProductClass;
|
|
use bizGhs\product\classes\ProductClass;
|
|
|
use bizGhs\product\models\Product;
|
|
use bizGhs\product\models\Product;
|
|
|
use bizGhs\product\services\ProductService;
|
|
use bizGhs\product\services\ProductService;
|
|
|
|
|
+use bizGhs\shop\classes\ShopAdminClass;
|
|
|
use common\components\printUtil;
|
|
use common\components\printUtil;
|
|
|
use common\components\stringUtil;
|
|
use common\components\stringUtil;
|
|
|
use common\components\util;
|
|
use common\components\util;
|
|
@@ -295,6 +296,19 @@ class ProductController extends BaseController
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ $mainId = $shop->mainId ?? 0;
|
|
|
|
|
+ if (!empty($mainId)) {
|
|
|
|
|
+ //提醒零售收银台界面要刷新
|
|
|
|
|
+ $staffList = ShopAdminClass::getAllByCondition(['mainId' => $mainId], null, '*', null, true);
|
|
|
|
|
+ if (!empty($staffList)) {
|
|
|
|
|
+ foreach ($staffList as $staff) {
|
|
|
|
|
+ $staffId = $staff->id ?? 0;
|
|
|
|
|
+ Yii::$app->redis->executeCommand('SET', ['cashier_' . $mainId . '_' . $staffId . '_may_refresh', 'yes']);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
$transaction->commit();
|
|
$transaction->commit();
|
|
|
util::complete('修改成功');
|
|
util::complete('修改成功');
|
|
|
|
|
|