904118851 3 月之前
父節點
當前提交
9091472ad1
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      service/backmgr/video_product.lua

+ 4 - 0
service/backmgr/video_product.lua

@@ -279,6 +279,10 @@ function M.set_top(msg_body)
         res = mysqldtaskbx.Singleton().query(sql)
         if #res >0 then
             local publish_time = res[1].publish_time
+            local y_publish_time = res[1].y_publish_time
+            if y_publish_time~=nil then
+                publish_time = y_publish_time
+            end
             sql = string.format("UPDATE  video_product SET is_top = 1 , expired_time = '%s' , y_publish_time = '%s' WHERE id = %d ",msg_body.expired_time,publish_time,id)
             mysqldtaskbx.Singleton().query(sql)
         end