WIN-2308041133\Administrator há 1 mês atrás
pai
commit
db6e3ec393
1 ficheiros alterados com 2 adições e 1 exclusões
  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) {
         if ($post['id'] > 0) {
+            $data['update_time'] = time();
             $result = Db::name('store_category')->where('id', $post['id'])->update($data);
             $result = Db::name('store_category')->where('id', $post['id'])->update($data);
         } else {
         } else {
-            $data['add_time'] = time();
+            $data['create_time'] = time();
             $result = Db::name('store_category')->insertGetId($data);
             $result = Db::name('store_category')->insertGetId($data);
         }
         }