فهرست منبع

actTime 活跃时间,只记录以天为单位的时候戳,用于花店注册时推荐批发店 -- 变换位置

shizhongqi 4 ماه پیش
والد
کامیت
5a53f7a5bc
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 0 4
      biz-hd/purchase/services/PurchaseService.php
  2. 4 0
      common/components/rabbitmq/notifyConsumer.php

+ 0 - 4
biz-hd/purchase/services/PurchaseService.php

@@ -408,10 +408,6 @@ class PurchaseService extends BaseService
         if (empty($shop)) {
             util::fail('没有找到门店63');
         }
-        // actTime 活跃时间,只记录以天为单位的时候戳,用于花店注册时推荐批发店
-        $shop->actTime = strtotime(date('Y-m-d'));
-        $shop->save();
-
         $mainId = $shop->mainId ?? 0;
         $main = MainClass::getLockById($mainId);
         if (empty($main)) {

+ 4 - 0
common/components/rabbitmq/notifyConsumer.php

@@ -128,6 +128,10 @@ class notifyConsumer implements ConsumerInterface
         if (empty($shop)) {
             return false;
         }
+        // actTime 活跃时间,只记录以天为单位的时候戳,用于花店注册时推荐批发店
+        $shop->actTime = strtotime(date('Y-m-d'));
+        $shop->save();
+        
         WxMessageClass::ghsHasNewOrderInform($shop, $order);
 
         // 向供货商App发通知