|
|
@@ -8,6 +8,7 @@ use biz\shop\classes\ShopCapitalClass;
|
|
|
use biz\stat\classes\StatCgPlantClass;
|
|
|
use biz\stat\classes\StatOutClass;
|
|
|
use bizHd\goods\services\GoodsCategoryService;
|
|
|
+use bizHd\message\classes\ChatClass;
|
|
|
use bizHd\order\classes\OrderClass;
|
|
|
use bizHd\work\classes\WorkClass;
|
|
|
use bizHd\work\classes\WorkItemClass;
|
|
|
@@ -374,11 +375,11 @@ class GoodsClass extends BaseClass
|
|
|
//改价和涨价的处理 ssh 20250907
|
|
|
public static function modifyAndRisePrice($data, $shop, $riseSwitch, $riseType, $riseAmount, $custom, $params)
|
|
|
{
|
|
|
- // 从redis获取报价,关键词 shopId_userId_goodsId
|
|
|
$shopId = $shop->id;
|
|
|
$userId = $custom['userId'] ?? 0;
|
|
|
$goodsId = $data['id'] ?? 0;
|
|
|
- $key = 'report_price' . $shopId . '_' . $userId . '_' . $goodsId;
|
|
|
+ // $key = 'report_price:' . $shopId . '_' . $userId . '_' . $goodsId; // 从redis获取报价,关键词 shopId_userId_goodsId
|
|
|
+ $key = ChatClass::getQuotedPriceKey($shopId, $userId, $goodsId);
|
|
|
$reportPrice = Yii::$app->redis->executeCommand('GET', [$key]);
|
|
|
if (floatval($reportPrice) > 0) {
|
|
|
//只要报价,不管是有无价格类型,就从报价里取,不参与涨价
|