shish 1 год назад
Родитель
Сommit
efa7cc0790
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      app-mall/controllers/ShopController.php

+ 4 - 0
app-mall/controllers/ShopController.php

@@ -54,6 +54,10 @@ class ShopController extends BaseController
                 $hd = HdClass::getById($hdId, true);
                 $customId = $hd->customId;
                 $custom = CustomClass::getById($customId, true);
+                if (!empty($custom)) {
+                    $custom->visitTime = date("Y-m-d H:i:s");
+                    $custom->save();
+                }
             }
         }