WIN-2308041133\Administrator 1 day ago
parent
commit
db6e3ec393
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/system/controller/Product.php

+ 2 - 1
app/system/controller/Product.php

@@ -61,9 +61,10 @@ class Product extends BaseController
         ];
 
         if ($post['id'] > 0) {
+            $data['update_time'] = time();
             $result = Db::name('store_category')->where('id', $post['id'])->update($data);
         } else {
-            $data['add_time'] = time();
+            $data['create_time'] = time();
             $result = Db::name('store_category')->insertGetId($data);
         }