shish 11 місяців тому
батько
коміт
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();
+                }
             }
         }